Index: src/parsing/scanner.cc |
diff --git a/src/parsing/scanner.cc b/src/parsing/scanner.cc |
index e41b56fd4b3b40094cdea7e660605e8eebabb32e..cfc0410b83cc77cbb78984aba151113d94429633 100644 |
--- a/src/parsing/scanner.cc |
+++ b/src/parsing/scanner.cc |
@@ -1153,7 +1153,7 @@ Token::Value Scanner::ScanNumber(bool seen_period) { |
if (next_.literal_chars->one_byte_literal().length() <= 10 && |
value <= Smi::kMaxValue && c0_ != '.' && c0_ != 'e' && c0_ != 'E') { |
- next_.smi_value_ = static_cast<int>(value); |
+ next_.smi_value_ = static_cast<uint32_t>(value); |
literal.Complete(); |
HandleLeadSurrogate(); |