From 65402ab1ec05fd552ceae63e2dcac69095ab1338 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 8 May 2016 22:21:21 +0100 Subject: py/mpz: Do Python style division/modulo within bignum divmod routine. This patch consolidates the Python logic for division/modulo to one place within the bignum code. --- tests/basics/int_big_mod.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/basics/int_big_mod.py b/tests/basics/int_big_mod.py index f383553c1..e87221c1c 100644 --- a/tests/basics/int_big_mod.py +++ b/tests/basics/int_big_mod.py @@ -4,8 +4,8 @@ delta = 100000000000000000000000000000012345 for i in range(11): for j in range(11): - x = delta * (i)# - 5) # TODO reinstate negative number test when % is working with sign correctly - y = delta * (j)# - 5) # TODO reinstate negative number test when % is working with sign correctly + x = delta * (i - 5) + y = delta * (j - 5) if y != 0: print(x % y) -- cgit v1.2.3