Kaydet (Commit) 7a2d6112 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 2981bc7a
...@@ -83,7 +83,7 @@ extern DL_IMPORT(PyIntObject) _Py_ZeroStruct, _Py_TrueStruct; /* Don't use these ...@@ -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
} }
......
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