Skip to content

Commit dd92ba1

Browse files
committed
use SIZEOF_SIZE_T == 8
1 parent 248c6b5 commit dd92ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ _PyLong_NumBits(PyObject *vv)
909909
assert(ndigits == 0 || v->long_value.ob_digit[ndigits - 1] != 0);
910910
if (ndigits > 0) {
911911
digit msd = v->long_value.ob_digit[ndigits - 1];
912-
#if SIZEOF_SIZE_T > 4
912+
#if SIZEOF_SIZE_T == 8
913913
assert(ndigits <= INT64_MAX / PyLong_SHIFT);
914914
#endif
915915
result = (int64_t)(ndigits - 1) * PyLong_SHIFT;

0 commit comments

Comments
 (0)