diff --git a/Lib/python/std_common.i b/Lib/python/std_common.i index 7d9cf71ad..d0a002bff 100644 --- a/Lib/python/std_common.i +++ b/Lib/python/std_common.i @@ -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) {