This commit is contained in:
Georg Schnabel 2024-11-20 21:39:27 +08:00 committed by GitHub
commit 324916b95f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ type is explicitly allowed.
value.long_value = PyLong_AsLong(tmp); value.long_value = PyLong_AsLong(tmp);
Py_DECREF(tmp); Py_DECREF(tmp);
/* Ensure return code was OK (to avoid out-of-range errors etc) */ /* Ensure return code was OK (to avoid out-of-range errors etc) */
return !(value.long_value == -1 && !PyErr_Occurred()); return !(value.long_value == -1 && PyErr_Occurred());
} }
/** /**