mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg.
This commit is contained in:
parent
d0924f4585
commit
2981bc7a65
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue