Dang it...

This commit is contained in:
Simon Forman
2022-10-10 18:39:35 -07:00
parent 92ffefd6f0
commit 2cf2b56751
4 changed files with 3152 additions and 14 deletions
+1 -2
View File
@@ -171,8 +171,7 @@ class BigInt:
for a, b in Z:
carry, digit = a.sub_with_carry(b, carry)
out.append(digit)
if carry:
out.append(one)
assert not carry # a >= b, eh?
result = BigInt()
result.sign = self.sign
result.digits = out