Skip to content

Commit 268840a

Browse files
committed
PyLong_AsInt
1 parent 0465b0d commit 268840a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testcapi/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ slot_from_object(PyObject *obj)
186186
if (slot_id_obj == NULL) {
187187
return -1;
188188
}
189-
int slot_id = PyLong_AsLong(slot_id_obj);
189+
int slot_id = PyLong_AsInt(slot_id_obj);
190190
if (PyErr_Occurred()) {
191191
return -1;
192192
}

0 commit comments

Comments
 (0)