Skip to content

Commit 401d860

Browse files
eendebakptvstinner
andauthored
Update Objects/longobject.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 01c48ae commit 401d860

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ PyLong_AsLongAndOverflow(PyObject *vv, int *overflow)
578578

579579
x = _unroll_digits(v, &i);
580580
while (--i >= 0) {
581-
if (x > SIZE_MAX >> PyLong_SHIFT) {
581+
if (x > (ULONG_MAX >> PyLong_SHIFT)) {
582582
*overflow = sign;
583583
goto exit;
584584
}

0 commit comments

Comments
 (0)