diff options
Diffstat (limited to 'tests/basics/int_big_mod.py')
-rw-r--r-- | tests/basics/int_big_mod.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/int_big_mod.py b/tests/basics/int_big_mod.py index 77c0ffc468..f383553c18 100644 --- a/tests/basics/int_big_mod.py +++ b/tests/basics/int_big_mod.py @@ -8,3 +8,10 @@ for i in range(11): y = delta * (j)# - 5) # TODO reinstate negative number test when % is working with sign correctly if y != 0: print(x % y) + +# these check an edge case on 64-bit machines where two mpz limbs +# are used and the most significant one has the MSB set +x = 0x8000000000000000 +print((x + 1) % x) +x = 0x86c60128feff5330 +print((x + 1) % x) |