diff --git a/Source/Modules/allegrocl.cxx b/Source/Modules/allegrocl.cxx index 19fff1bea..4f39fcbb7 100644 --- a/Source/Modules/allegrocl.cxx +++ b/Source/Modules/allegrocl.cxx @@ -391,8 +391,8 @@ void add_defined_foreign_type(Node *n, Setattr(defined_foreign_ltypes,Copy(k),Copy(mangled_lname_gen)); if(CPlusPlus) { - bool cpp_struct = Strstr(k, "struct "); - bool cpp_union = Strstr(k, "union "); + bool cpp_struct = Strstr(k, "struct ") ? true : false; + bool cpp_union = Strstr(k, "union ") ? true : false; String *cpp_type = 0; if(cpp_struct) {