diff --git a/Source/Modules/lua.cxx b/Source/Modules/lua.cxx index bb46c707c..06e9eca68 100644 --- a/Source/Modules/lua.cxx +++ b/Source/Modules/lua.cxx @@ -704,7 +704,7 @@ NEW LANGUAGE NOTE:END ************************************************/ String *setName = 0; // checking whether it can be set to or not appears to be a very error prone issue // I refered to the Language::variableWrapper() to find this out - bool assignable=is_assignable(n); + bool assignable=is_assignable(n) ? true : false; SwigType *type = Getattr(n, "type"); String *tm = Swig_typemap_lookup_new("globalin", n, iname, 0); if (!tm && SwigType_isarray(type)) diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index 961fdeec1..84ad210cd 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -2958,8 +2958,8 @@ public: int status = SWIG_OK; int idx; bool ignored_method = GetFlag(n, "feature:ignore") ? true : false; - bool asvoid = bool( checkAttribute( n, "feature:numoutputs", "0") ); - bool initstack = bool( checkAttribute( n, "feature:initstack", "1") ); + bool asvoid = checkAttribute( n, "feature:numoutputs", "0") ? true : false; + bool initstack = checkAttribute( n, "feature:initstack", "1") ? true : false; if (Cmp(storage, "virtual") == 0) { if (Cmp(value, "0") == 0) {