Index: runtime/vm/kernel_to_il.cc |
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc |
index e1251535705c70a0680a041c6a93efe8cda51b43..984de1d4aeabf6f9dda81ac56c48f9fd6ca966c9 100644 |
--- a/runtime/vm/kernel_to_il.cc |
+++ b/runtime/vm/kernel_to_il.cc |
@@ -1811,11 +1811,11 @@ void ConstantEvaluator::VisitNot(Not* node) { |
void ConstantEvaluator::VisitPropertyGet(PropertyGet* node) { |
- const size_t kLengthLen = strlen("length"); |
+ const intptr_t kLengthLen = strlen("length"); |
String* string = node->name()->string(); |
- if (string->size() == kLengthLen && |
- memcmp(string->buffer(), "length", kLengthLen) == 0) { |
+ if ((string->size() == kLengthLen) && |
+ (memcmp(string->buffer(), "length", kLengthLen) == 0)) { |
node->receiver()->AcceptExpressionVisitor(this); |
if (result_.IsString()) { |
const dart::String& str = |