We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ec9943 commit d276dfaCopy full SHA for d276dfa
graalpython/com.oracle.graal.python.cext/src/floatobject.c
@@ -301,6 +301,7 @@ PyFloat_AsDouble(PyObject *op)
301
{
302
// GraalPy change: read from native object stub or upcall for managed
303
if (points_to_py_handle_space(op)) {
304
+#ifndef GRAALVM_PYTHON_LLVM_MANAGED
305
if (PyFloat_Check(op)) {
306
double val = ((GraalPyFloatObject*) pointer_to_stub(op))->ob_fval;
307
#ifndef NDEBUG
@@ -310,9 +311,8 @@ PyFloat_AsDouble(PyObject *op)
310
311
#endif
312
return val;
313
}
- else {
314
- return GraalPyTruffleFloat_AsDouble(op);
315
- }
+#endif /* GRAALVM_PYTHON_LLVM_MANAGED */
+ return GraalPyTruffleFloat_AsDouble(op);
316
317
318
PyNumberMethods *nb;
0 commit comments