Index: runtime/bin/io_natives.cc |
diff --git a/runtime/bin/io_natives.cc b/runtime/bin/io_natives.cc |
index 91cc1e893e17d0c23c2a99772e2d3da0c77e7669..0563faffb98af232807e661e4faabf019f9df043 100644 |
--- a/runtime/bin/io_natives.cc |
+++ b/runtime/bin/io_natives.cc |
@@ -12,7 +12,6 @@ |
#include "include/dart_api.h" |
#include "platform/assert.h" |
- |
namespace dart { |
namespace bin { |
@@ -169,7 +168,7 @@ Dart_NativeFunction IONativeLookup(Dart_Handle name, |
int num_entries = sizeof(IOEntries) / sizeof(struct NativeEntries); |
for (int i = 0; i < num_entries; i++) { |
struct NativeEntries* entry = &(IOEntries[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_); |
} |