summaryrefslogtreecommitdiffstats
path: root/chromium/v8/src/regexp/gen-regexp-special-case.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/regexp/gen-regexp-special-case.cc')
-rw-r--r--chromium/v8/src/regexp/gen-regexp-special-case.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/v8/src/regexp/gen-regexp-special-case.cc b/chromium/v8/src/regexp/gen-regexp-special-case.cc
index 9606c5d70d9..9ed338fc1d8 100644
--- a/chromium/v8/src/regexp/gen-regexp-special-case.cc
+++ b/chromium/v8/src/regexp/gen-regexp-special-case.cc
@@ -55,8 +55,9 @@ void PrintSpecial(std::ofstream& out) {
CHECK(U_SUCCESS(status));
// Iterate through all chars in BMP except surrogates.
- for (UChar32 i = 0; i < kNonBmpStart; i++) {
- if (i >= kSurrogateStart && i <= kSurrogateEnd) {
+ for (UChar32 i = 0; i < static_cast<UChar32>(kNonBmpStart); i++) {
+ if (i >= static_cast<UChar32>(kSurrogateStart) &&
+ i <= static_cast<UChar32>(kSurrogateEnd)) {
continue; // Ignore surrogate range
}
current.set(i, i);