diff --git a/src/runtime.cc b/src/runtime.cc index 8ee4102429..7d9ec3c7ad 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -5109,7 +5109,7 @@ static inline SinkChar* WriteQuoteJsonString( SourceChar c = *(read_cursor++); if (sizeof(SourceChar) > 1u && static_cast(c) >= kQuoteTableLength) { - *(write_cursor++) = c; + *(write_cursor++) = static_cast(c); } else { int len = JsonQuoteLengths[static_cast(c)]; const char* replacement = JsonQuotes +