warning fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-10-22 21:31:09 +00:00
commit fa72166164
2 changed files with 3 additions and 3 deletions

View file

@ -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))

View file

@ -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) {