summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/listobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/listobject.h b/Include/listobject.h
index d72475e..c1bbcc1 100644
--- a/Include/listobject.h
+++ b/Include/listobject.h
@@ -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
}