fix bool AsVal
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7817 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9e66ad828d
commit
d6f0a99b3e
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ SWIG_AsVal_dec(bool)(PyObject *obj, bool *val)
|
||||||
return SWIG_OK;
|
return SWIG_OK;
|
||||||
} else {
|
} else {
|
||||||
long v = 0;
|
long v = 0;
|
||||||
int res = SWIG_AsVal(long)(obj, &v);
|
int res = SWIG_AsVal(long)(obj, val ? &v : 0);
|
||||||
if (res == SWIG_OK && val) *val = v ? true : false;
|
if (res == SWIG_OK && val) *val = v ? true : false;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue