Kaydet (Commit) 1f2bd07a authored tarafından Barry Warsaw's avatar Barry Warsaw

added PyList_GET_SIZE macro

for both PyList_GET_SIZE and PyList_GET_ITEM, cast first argument to a
PyListObject*
üst e0548b8d
......@@ -73,7 +73,8 @@ extern int PyList_Reverse Py_PROTO((PyObject *));
extern PyObject *PyList_AsTuple Py_PROTO((PyObject *));
/* Macro, trading safety for speed */
#define PyList_GET_ITEM(op, i) ((op)->ob_item[i])
#define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i])
#define PyList_GET_SIZE(op) (((PyListObject *)(op))->ob_size)
#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