aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/hamt.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/hamt.c')
-rw-r--r--Python/hamt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/hamt.c b/Python/hamt.c
index d734d6ed07f..aa90d37240a 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -373,10 +373,11 @@ hamt_node_collision_count(PyHamtNode_Collision *node);
#ifdef Py_DEBUG
static void
-_hamt_node_array_validate(void *o)
+_hamt_node_array_validate(void *obj_raw)
{
- assert(IS_ARRAY_NODE(o));
- PyHamtNode_Array *node = (PyHamtNode_Array*)(o);
+ PyObject *obj = _PyObject_CAST(obj_raw);
+ assert(IS_ARRAY_NODE(obj));
+ PyHamtNode_Array *node = (PyHamtNode_Array*)obj;
Py_ssize_t i = 0, count = 0;
for (; i < HAMT_ARRAY_NODE_SIZE; i++) {
if (node->a_array[i] != NULL) {