We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8dd11e + 5115abe commit fd3ff88Copy full SHA for fd3ff88
1 file changed
src/hal/halmodule.cc
@@ -39,8 +39,7 @@ PyObject *to_python(bool b) {
39
return PyBool_FromLong(b);
40
}
41
42
-PyObject *to_python(unsigned u) {
43
- if(u < LONG_MAX) return PyLong_FromLong(u);
+PyObject *to_python(unsigned int u) {
44
return PyLong_FromUnsignedLong(u);
45
46
0 commit comments