From e4cf772a4d5f8856bfd960e01d7c2774918b72ee Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 29 Nov 2021 13:53:28 -0500 Subject: [PATCH] [python] hate --- python/notcurses/notcurses-python.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/notcurses/notcurses-python.h b/python/notcurses/notcurses-python.h index 9828976dd..9a5065675 100644 --- a/python/notcurses/notcurses-python.h +++ b/python/notcurses/notcurses-python.h @@ -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; \