[python] hate

This commit is contained in:
nick black 2021-11-29 13:53:28 -05:00
parent 5ab251e8d8
commit e4cf772a4d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -240,7 +240,7 @@ static inline void PyObject_cleanup(PyObject **object)
#define GNU_PY_UINT_CHECK(py_ulong) \
({ \
unsigned new_long = PyLong_AsUnsignedLong(py_ulong); \
unsigned new_long = (unsigned)PyLong_AsUnsignedLong(py_ulong); \
if (PyErr_Occurred()) \
{ \
return NULL; \