Index: runtime/vm/cpuinfo_macos.cc |
diff --git a/runtime/vm/cpuinfo_macos.cc b/runtime/vm/cpuinfo_macos.cc |
index 6300d7c7f7298a130c562ffd6d59ba78198ccd4c..63523914ddf4c2bd581ebe4e2edb897b2e3c46cd 100644 |
--- a/runtime/vm/cpuinfo_macos.cc |
+++ b/runtime/vm/cpuinfo_macos.cc |
@@ -85,7 +85,7 @@ bool CpuInfo::HasField(const char* field) { |
ASSERT(method_ != kCpuInfoDefault); |
ASSERT(field != NULL); |
int ret = sysctlbyname(field, NULL, NULL, NULL, 0); |
- return (ret != ENOENT); |
+ return (ret == 0); |
} |
} // namespace dart |