From 9369bae9f4a32adfb49260143855f30649cefb6e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 10 Jan 2006 23:19:30 +0000 Subject: [PATCH] warning fixes git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8358 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/allegrocl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {