Commit d04b9fbb authored by Guido van Rossum's avatar Guido van Rossum

Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg.

parent b29f0689
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment