From 66ad1922669e7fbbc8124b80a44ebb0fd5e54a17 Mon Sep 17 00:00:00 2001 From: Andrey Guskov Date: Wed, 29 Apr 2015 15:25:31 +0300 Subject: [PATCH] Typo fix in CXX output --- module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.cpp b/module.cpp index ce5fdabd..8822eac3 100644 --- a/module.cpp +++ b/module.cpp @@ -3110,8 +3110,8 @@ Module::CompileAndOutput(const char *srcFile, } #endif /* ISPC_NVPTX_ENABLED */ if (outputType == CXX) { - if (target == NULL || strncmp(target, "generic-", 8) != 0 - || strstr(target, "-generic-") == NULL) { + if (target == NULL || (strncmp(target, "generic-", 8) != 0 + && strstr(target, "-generic-") == NULL)) { Error(SourcePos(), "When generating C++ output, one of the \"generic-*\" " "targets must be used."); return 1;