We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab26ad9 commit 0d2f27eCopy full SHA for 0d2f27e
1 file changed
Modules/_uuidmodule.c
@@ -837,10 +837,8 @@ extract_field(
837
goto fail;
838
}
839
840
- int overflow;
841
- uint64_t value = PyLong_AsLongLongAndOverflow(field, &overflow);
842
- if (overflow || (value == (uint64_t)-1 && PyErr_Occurred())) {
843
- PyErr_SetString(PyExc_ValueError, error_msg);
+ uint64_t value;
+ if (PyLong_AsUInt64(field, &value) < 0) {
844
845
846
0 commit comments