Index: src/json-stringifier.h |
diff --git a/src/json-stringifier.h b/src/json-stringifier.h |
index 5b41ef54b6b7b43ec4f79baff551919e11dab566..ad9ef3ddb71e86b17a9aa39caacecf94ebcaad81 100644 |
--- a/src/json-stringifier.h |
+++ b/src/json-stringifier.h |
@@ -682,7 +682,8 @@ void BasicJsonStringifier::SerializeStringUnchecked_(const SrcChar* src, |
if (DoNotEscape(c)) { |
*(dest++) = static_cast<DestChar>(c); |
} else { |
- const char* chars = &JsonEscapeTable[c * kJsonEscapeTableEntrySize]; |
+ const uint8_t* chars = reinterpret_cast<const uint8_t*>( |
+ &JsonEscapeTable[c * kJsonEscapeTableEntrySize]); |
while (*chars != '\0') *(dest++) = *(chars++); |
} |
} |
@@ -722,9 +723,8 @@ void BasicJsonStringifier::SerializeString_(Handle<String> string) { |
if (DoNotEscape(c)) { |
Append_<is_ascii, Char>(c); |
} else { |
- Append_<is_ascii, uint8_t>( |
- reinterpret_cast<const uint8_t*>( |
- &JsonEscapeTable[c * kJsonEscapeTableEntrySize])); |
+ Append_<is_ascii, uint8_t>(reinterpret_cast<const uint8_t*>( |
+ &JsonEscapeTable[c * kJsonEscapeTableEntrySize])); |
} |
// If GC moved the string, we need to refresh the vector. |
if (*string != string_location) { |