diff options
| -rw-r--r-- | sources/shiboken6/libshiboken/sbkconverter_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/libshiboken/sbkconverter_p.h b/sources/shiboken6/libshiboken/sbkconverter_p.h index 08fc4c8e1..b4ef51d44 100644 --- a/sources/shiboken6/libshiboken/sbkconverter_p.h +++ b/sources/shiboken6/libshiboken/sbkconverter_p.h @@ -221,7 +221,7 @@ struct IntPrimitive : TwoPrimitive<INT> } static void toCpp(PyObject *pyIn, void *cppOut) { - double result = PyFloat_AS_DOUBLE(pyIn); + double result = PyFloat_AsDouble(pyIn); // If cast to long directly it could overflow silently. if (OverFlowChecker<INT>::check(result, pyIn)) PyErr_SetObject(PyExc_OverflowError, nullptr); |
