From 12f68302cde988ba2a4b0878569bd643a9a125d2 Mon Sep 17 00:00:00 2001 From: lihucheng Date: Thu, 24 Nov 2022 16:24:21 +0800 Subject: [PATCH] Fix sync failure issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/I62XPM Signed-off-by: lihucheng --- websocket/define.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/websocket/define.h b/websocket/define.h index cd4c61b9..5afdd8b3 100644 --- a/websocket/define.h +++ b/websocket/define.h @@ -38,9 +38,9 @@ namespace OHOS::ArkCompiler::Toolchain { std::vector ProtocolSplit(const std::string& str, const std::string& input) { std::vector result; - uint32_t prev = 0; - uint32_t len = input.length(); - uint32_t cur = str.find(input); + size_t prev = 0; + size_t len = input.length(); + size_t cur = str.find(input); while (cur != std::string::npos) { std::string tmp = str.substr(prev, cur - prev); result.push_back(tmp); -- Gitee