Index: runtime/bin/builtin_gen_snapshot.cc |
diff --git a/runtime/bin/builtin_gen_snapshot.cc b/runtime/bin/builtin_gen_snapshot.cc |
index c1263bd06cb653df222ab9c8c9bab7fba952bdf6..17d4a5711126381b7a9d838682cbfdb7dedc2a3d 100644 |
--- a/runtime/bin/builtin_gen_snapshot.cc |
+++ b/runtime/bin/builtin_gen_snapshot.cc |
@@ -41,7 +41,7 @@ Dart_NativeFunction Builtin::NativeLookup(Dart_Handle name, |
int num_entries = sizeof(BuiltinEntries) / sizeof(struct NativeEntries); |
for (int i = 0; i < num_entries; i++) { |
struct NativeEntries* entry = &(BuiltinEntries[i]); |
- if (!strcmp(function_name, entry->name_) && |
+ if ((strcmp(function_name, entry->name_) == 0) && |
(entry->argument_count_ == argument_count)) { |
return reinterpret_cast<Dart_NativeFunction>(entry->function_); |
} |