Index: runtime/vm/kernel.cc |
diff --git a/runtime/vm/kernel.cc b/runtime/vm/kernel.cc |
index 293f946592b9babbcaa7ebb65226015547d9a561..8c0e7884c5ef3dd6f47405ce09ba0185f9d2e4fd 100644 |
--- a/runtime/vm/kernel.cc |
+++ b/runtime/vm/kernel.cc |
@@ -80,7 +80,8 @@ bool CanonicalName::IsMember() { |
// Note the two occurrences of the parameter 'literal'. |
#define COMPARE_NAME(canonical_name, literal) \ |
- ((canonical_name)->name()->size() == strlen(literal) && \ |
+ ((canonical_name)->name()->size() == \ |
+ static_cast<intptr_t>(strlen(literal)) && \ |
memcmp((canonical_name)->name()->buffer(), (literal), strlen(literal)) == \ |
0) |