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:
Marcelo Matus 2004-01-20 20:46:31 +00:00
commit 9030e12d3f

View file

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