Index: src/json-parser.h |
diff --git a/src/json-parser.h b/src/json-parser.h |
index b02c3afe29cfe70a3f3dfcb883b4d47064780bba..c23e50dbb4dbd0eefbfc955f54eaed03e9b34511 100644 |
--- a/src/json-parser.h |
+++ b/src/json-parser.h |
@@ -719,7 +719,8 @@ Handle<String> JsonParser<seq_ascii>::ScanJsonString() { |
} while (c0 != '"'); |
int length = position - position_; |
uint32_t hash = (length <= String::kMaxHashCalcLength) |
- ? StringHasher::GetHashCore(running_hash) : length; |
+ ? StringHasher::GetHashCore(running_hash) |
+ : static_cast<uint32_t>(length); |
Vector<const uint8_t> string_vector( |
seq_source_->GetChars() + position_, length); |
StringTable* string_table = isolate()->heap()->string_table(); |