From a9d5f49c4aa32e8646bc3235ca42ab5fcd54dcbf Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 29 Jun 2006 22:03:56 +0000 Subject: [PATCH] fix compiler warnings git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9181 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/allocate.cxx | 4 ++-- Source/Modules/php4.cxx | 2 +- Source/Modules/r.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Modules/allocate.cxx b/Source/Modules/allocate.cxx index 7116fa2a1..3f9ca8039 100644 --- a/Source/Modules/allocate.cxx +++ b/Source/Modules/allocate.cxx @@ -186,8 +186,8 @@ class Allocate : public Dispatcher { if (decl_match && returntype_match) { // Found an identical method in the base class - bool this_wrapping_protected_members = is_member_director(n); // This should really check for dirprot rather than just being a director method - bool base_wrapping_protected_members = is_member_director(base); // This should really check for dirprot rather than just being a director method + bool this_wrapping_protected_members = is_member_director(n) ? true : false; // This should really check for dirprot rather than just being a director method + bool base_wrapping_protected_members = is_member_director(base) ? true : false; // This should really check for dirprot rather than just being a director method bool both_have_public_access = is_public(n) && is_public(base); bool both_have_protected_access = (is_protected(n) && this_wrapping_protected_members) && (is_protected(base) && base_wrapping_protected_members); bool both_have_private_access = is_private(n) && is_private(base); diff --git a/Source/Modules/php4.cxx b/Source/Modules/php4.cxx index f5cd97271..2c5d87825 100644 --- a/Source/Modules/php4.cxx +++ b/Source/Modules/php4.cxx @@ -1363,7 +1363,7 @@ public: output = s_fakeoowrappers; } - bool really_overloaded = overloaded; + bool really_overloaded = overloaded ? true : false; int min_num_of_arguments = emit_num_required(l); int max_num_of_arguments = emit_num_arguments(l); // For a function with default arguments, we end up with the fullest diff --git a/Source/Modules/r.cxx b/Source/Modules/r.cxx index 80f5af3ba..2ae3b9f0c 100644 --- a/Source/Modules/r.cxx +++ b/Source/Modules/r.cxx @@ -2363,7 +2363,7 @@ int R::classDeclaration(Node *n) { // typedefHandler(n); } - bool opaque = GetFlag(n, "feature:opaque"); + bool opaque = GetFlag(n, "feature:opaque") ? true : false; if(opaque) opaqueClassDeclaration = name;