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 004dce0 commit 32c68aeCopy full SHA for 32c68ae
1 file changed
Python/specialize.c
@@ -2475,7 +2475,7 @@ shift_guard(PyObject *lhs, PyObject *rhs)
2475
2476
// rshift with value larger the the number of bits is undefined in C
2477
// for lshift we do not want to overflow, but we always have at least 16 bits available
2478
- return (is_compactlong(lhs) && is_compactnonnegativelong(rhs) && (_PyLong_CompactValue((PyLongObject *)rhs) <= 16) );
+ return (is_compactlong(lhs) && is_compactnonnegativelong(rhs) && (_PyLong_CompactValue((PyLongObject *)rhs) <= 12) );
2479
}
2480
2481
#define BITWISE_LONGS_ACTION(NAME, OP) \
0 commit comments