diff --git a/src/common/mac/arch_utilities.cc b/src/common/mac/arch_utilities.cc index bfafc0d9..4e5f5534 100644 --- a/src/common/mac/arch_utilities.cc +++ b/src/common/mac/arch_utilities.cc @@ -180,7 +180,7 @@ const NXArchInfo *NXGetLocalArchInfo(void) { const NXArchInfo *NXGetArchInfoFromName(const char *name) { for (int arch = 0; arch < kNumArchitectures; ++arch) { - if (strcmp(name, kKnownArchitectures[arch].name)) { + if (!strcmp(name, kKnownArchitectures[arch].name)) { return &kKnownArchitectures[arch]; } }