mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
win: Fix implicit conversion changes signedness error
This commit is contained in:
14
patch/patches/base_escape_4718245.patch
Normal file
14
patch/patches/base_escape_4718245.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff --git base/strings/escape.cc base/strings/escape.cc
|
||||
index d303ead90bc7d..d03da4c2ef2f6 100644
|
||||
--- base/strings/escape.cc
|
||||
+++ base/strings/escape.cc
|
||||
@@ -443,8 +443,7 @@ std::string UnescapeURLWithAdjustmentsImpl(
|
||||
if (!ShouldUnescapeCodePoint(rules, code_point)) {
|
||||
// If it's a valid UTF-8 character, but not safe to unescape, copy all
|
||||
// bytes directly.
|
||||
- result.append(escaped_text.begin() + i,
|
||||
- escaped_text.begin() + i + 3 * unescaped.length());
|
||||
+ result.append(escaped_text.substr(i, 3 * unescaped.length()));
|
||||
i += unescaped.length() * 3;
|
||||
continue;
|
||||
}
|
Reference in New Issue
Block a user