diff options
| author | Damien George | 2015-10-01 22:35:06 +0100 |
|---|---|---|
| committer | Damien George | 2015-10-01 22:35:06 +0100 |
| commit | 2065373f67b126edfc3e0f2519aaad0956902c14 (patch) | |
| tree | ecfd697b35b0bc1c883b845c1be625578deafc8f /tests | |
| parent | a81539db25d443826e5247fefda8ae73bad64056 (diff) | |
py/mpz: Fix bignum anding of large negative with smaller positive int.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/int_big_and.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/basics/int_big_and.py b/tests/basics/int_big_and.py index e0d0935a4..2dabe80ec 100644 --- a/tests/basics/int_big_and.py +++ b/tests/basics/int_big_and.py @@ -24,3 +24,5 @@ print(-2345678901234567890123456789 & a) print((-a) & a) print((-a) & 0xffffffff) print((-a) & 0xffffffffffffffffffffffffffffffff) +print((-a) & 2) +print((-(1 << 70)) & 2) |
