Index: src/value-serializer.cc |
diff --git a/src/value-serializer.cc b/src/value-serializer.cc |
index 86c96dac16b430ab7a5bc433a1a8f607d52267da..8dfb27c4445819ad0b22654942f8c22305f690c0 100644 |
--- a/src/value-serializer.cc |
+++ b/src/value-serializer.cc |
@@ -1139,7 +1139,7 @@ bool ValueDeserializer::ReadExpectedString(Handle<String> expected) { |
// is successfully consumed. |
if (tag == SerializationTag::kUtf8String && flat.IsOneByte()) { |
Vector<const uint8_t> chars = flat.ToOneByteVector(); |
- if (byte_length == chars.length() && |
+ if (byte_length == static_cast<size_t>(chars.length()) && |
String::IsAscii(chars.begin(), chars.length()) && |
memcmp(bytes.begin(), chars.begin(), byte_length) == 0) { |
return true; |