fix mixed type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5647 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
62e094fe92
commit
9030e12d3f
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
PyObject* SwigInt_FromBool(bool b) {
|
||||
return PyInt_FromLong(b ? 1L : 0L);
|
||||
}
|
||||
double SwigNumber_Check(PyObject* o) {
|
||||
int SwigNumber_Check(PyObject* o) {
|
||||
return PyFloat_Check(o) || PyInt_Check(o) || PyLong_Check(o);
|
||||
}
|
||||
double SwigNumber_AsDouble(PyObject* o) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue