mirror of https://github.com/python/cpython
The tail end of x_sub implicitly assumed that an unsigned short
contains 16 bits. Not true on Cray J90.
This commit is contained in:
parent
a90b23c571
commit
43f04a36cf
|
@ -1048,6 +1048,7 @@ x_sub(PyLongObject *a, PyLongObject *b)
|
|||
borrow = a->ob_digit[i] - borrow;
|
||||
z->ob_digit[i] = borrow & MASK;
|
||||
borrow >>= SHIFT;
|
||||
borrow &= 1; /* Keep only one sign bit */
|
||||
}
|
||||
assert(borrow == 0);
|
||||
if (sign < 0)
|
||||
|
|
Loading…
Reference in New Issue