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:
parent
e14b6980f7
commit
966290225e
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue