Mercurial > cpython-lru_cache-weakref
diff Include/floatobject.h @ 5917:04a1b82c832b legacy-trunk
Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 02 Aug 1997 02:40:58 +0000 |
| parents | 65d2d8e67da3 |
| children | 60fdb1db1175 |
line wrap: on
line diff
--- a/Include/floatobject.h Sat Aug 02 02:06:20 1997 +0000 +++ b/Include/floatobject.h Sat Aug 02 02:40:58 1997 +0000 @@ -54,7 +54,7 @@ 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 }
