diff options
author | Guido van Rossum <guido@python.org> | 1997-08-02 02:40:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-02 02:40:58 (GMT) |
commit | 2981bc7a65031f3661c401bddf78102c1e7e979e (patch) | |
tree | c37e26ecac46bb60f7ef0d6385115c30539dfc4a /Include/floatobject.h | |
parent | d0924f45853c4157718859301800dc4a37aead33 (diff) | |
download | cpython-2981bc7a65031f3661c401bddf78102c1e7e979e.zip cpython-2981bc7a65031f3661c401bddf78102c1e7e979e.tar.gz cpython-2981bc7a65031f3661c401bddf78102c1e7e979e.tar.bz2 |
Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg.
Diffstat (limited to 'Include/floatobject.h')
-rw-r--r-- | Include/floatobject.h | 2 |
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 } |