diff options
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index b9a5e1b..2de5535 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -590,6 +590,11 @@ float_coerce(PyObject **pv, PyObject **pw) Py_INCREF(*pv); return 0; } + else if (PyFloat_Check(*pw)) { + Py_INCREF(*pv); + Py_INCREF(*pw); + return 0; + } return 1; /* Can't do it */ } |