summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Include/floatobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h
index 1c615f5..c4a356a 100644
--- a/Include/floatobject.h
+++ b/Include/floatobject.h
@@ -54,7 +54,7 @@ extern PyObject *PyFloat_FromDouble Py_PROTO((double));
extern double PyFloat_AsDouble Py_PROTO((PyObject *));
/* Macro, trading safety for speed */
-#define PyFloat_AS_DOUBLE(op) ((op)->ob_fval)
+#define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval)
#ifdef __cplusplus
}