From ed8dc5198f2759f964c72768bcadb5876ee5fe32 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@8358 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/allegrocl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SWIG/Source/Modules/allegrocl.cxx b/SWIG/Source/Modules/allegrocl.cxx index 19fff1bea..4f39fcbb7 100644 --- a/SWIG/Source/Modules/allegrocl.cxx +++ b/SWIG/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) {