fix error in bool

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6817 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-01 01:20:42 +00:00
commit 966290225e

View file

@ -580,7 +580,9 @@ SWIGINTERN int
if (SWIG_AsVal(int)(obj, &res)) { if (SWIG_AsVal(int)(obj, &res)) {
if (val) *val = res ? true : false; if (val) *val = res ? true : false;
return 1; return 1;
} } else {
PyErr_Clear();
}
if (val) { if (val) {
SWIG_type_error("bool", obj); SWIG_type_error("bool", obj);
} }