mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Add cast to PyInt_AS_LONG macro, as suggested by Marc Lemburg.
This commit is contained in:
parent
2981bc7a65
commit
7a2d6112d9
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ extern DL_IMPORT(PyIntObject) _Py_ZeroStruct, _Py_TrueStruct; /* Don't use these
|
||||||
#define Py_True ((PyObject *) &_Py_TrueStruct)
|
#define Py_True ((PyObject *) &_Py_TrueStruct)
|
||||||
|
|
||||||
/* Macro, trading safety for speed */
|
/* Macro, trading safety for speed */
|
||||||
#define PyInt_AS_LONG(op) ((op)->ob_ival)
|
#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue