Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 1623974db8b5cced8aa8eea566e7e746fbe01ff7..6c000cf0ab49aca00c1407a224e67088552a250e 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -5252,7 +5252,7 @@ static MaybeObject* SlowQuoteJsonString(Isolate* isolate, |
int quoted_length = kSpaceForQuotes; |
while (read_cursor < end) { |
Char c = *(read_cursor++); |
- if (sizeof(Char) > 1u && static_cast<unsigned>(c) >= kQuoteTableLength) { |
+ if (static_cast<unsigned>(c) >= kQuoteTableLength) { |
quoted_length++; |
} else { |
quoted_length += JsonQuoteLengths[static_cast<unsigned>(c)]; |
@@ -5274,7 +5274,7 @@ static MaybeObject* SlowQuoteJsonString(Isolate* isolate, |
read_cursor = characters.start(); |
while (read_cursor < end) { |
Char c = *(read_cursor++); |
- if (sizeof(Char) > 1u && static_cast<unsigned>(c) >= kQuoteTableLength) { |
+ if (static_cast<unsigned>(c) >= kQuoteTableLength) { |
*(write_cursor++) = c; |
} else { |
int len = JsonQuoteLengths[static_cast<unsigned>(c)]; |
@@ -5302,8 +5302,7 @@ static inline SinkChar* WriteQuoteJsonString( |
*(write_cursor++) = '"'; |
while (read_cursor < end) { |
SourceChar c = *(read_cursor++); |
- if (sizeof(SourceChar) > 1u && |
- static_cast<unsigned>(c) >= kQuoteTableLength) { |
+ if (static_cast<unsigned>(c) >= kQuoteTableLength) { |
*(write_cursor++) = static_cast<SinkChar>(c); |
} else { |
int len = JsonQuoteLengths[static_cast<unsigned>(c)]; |