From 81ab48d1818d48fad73ffec9f731d7eb5a50a6d2 Mon Sep 17 00:00:00 2001 From: zhaoyuan Date: Thu, 30 Sep 2021 18:43:45 +0000 Subject: [PATCH] fixed 04259bb from https://gitee.com/skyblackleon/aafwk_standard/pulls/124 fix codex Signed-off-by: zhaoyuan --- tools/zip/src/file_path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/zip/src/file_path.cpp b/tools/zip/src/file_path.cpp index b9ba70e0dcc..cb3265c6289 100755 --- a/tools/zip/src/file_path.cpp +++ b/tools/zip/src/file_path.cpp @@ -176,8 +176,8 @@ void FilePath::StripTrailingSeparatorsInternal() if (path_.size() == 0) { return; } - std::string::size_type one = 1; - std::string::size_type two = 2; + int one = 1; + int two = 2; int start = FindDriveLetter(path_) + two; std::string::size_type lastStripped = std::string::npos; for (std::string::size_type pos = path_.length(); pos > start && FilePath::IsSeparator(path_[pos - one]); --pos) { -- Gitee