From 9030e12d3f76d722799a464b1025872edc358ebd Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 20 Jan 2004 20:46:31 +0000 Subject: [PATCH] fix mixed type git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5647 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/std_common.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {