aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2024-11-06 10:54:15 +0100
committerCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2024-11-08 14:24:28 +0100
commitc4aa90c3e40370a8c6ad825c11f3944f09fd5b59 (patch)
tree6a2452ccd7725a54022e56e1fc649797e1c1f073
parenta9670e8cd1c56b0976adde073d71d64ef6b49b30 (diff)
limited api: Remove PyFloat_AS_DOUBLE
Removing temporary macro used for limited api compatibility. Change-Id: If55d21805f4c05a149af5fb432dd24edbf2fea03 Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--sources/shiboken6/libshiboken/sbkconverter_p.h2
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);