diff --git a/src_c/include/base.h b/src_c/include/base.h index 0f93011..be8e8a2 100644 --- a/src_c/include/base.h +++ b/src_c/include/base.h @@ -15,6 +15,7 @@ pg_IntFromObj(PyObject *obj, int *val) *val = (int)PyFloat_AS_DOUBLE(obj); return 1; } + *val = PyLong_AsLong(obj); if (PyErr_Occurred()) {