Index: src/ast-value-factory.cc |
diff --git a/src/ast-value-factory.cc b/src/ast-value-factory.cc |
index a430dcd308a047ae816b7a8290dfe5ef9253308b..bdc80d14dfb278a98eb7ebf986c77beab6ae7f52 100644 |
--- a/src/ast-value-factory.cc |
+++ b/src/ast-value-factory.cc |
@@ -77,7 +77,7 @@ bool AstString::AsArrayIndex(uint32_t* index) const { |
bool AstString::IsOneByteEqualTo(const char* data) const { |
- int length = strlen(data); |
+ int length = static_cast<int>(strlen(data)); |
if (is_one_byte_ && literal_bytes_.length() == length) { |
const char* token = reinterpret_cast<const char*>(literal_bytes_.start()); |
return !strncmp(token, data, length); |