summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-03-19 16:57:31 -0700
committerOri Bernstein <ori@markovcorp.com>2018-03-19 16:57:31 -0700
commitb0f3b09fc1b44a8cd0715af65774fe3296b9e016 (patch)
tree41f967f9ecc292b7e1276cd354567c18baff6f5e
parent16ed56af9183b9dc0669adf1b8b5eade47902d38 (diff)
downloadmc-b0f3b09fc1b44a8cd0715af65774fe3296b9e016.tar.gz
Check both digits for < Kmin
-rw-r--r--lib/std/bigint.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/bigint.myr b/lib/std/bigint.myr
index 29286c4..d708f7d 100644
--- a/lib/std/bigint.myr
+++ b/lib/std/bigint.myr
@@ -538,7 +538,7 @@ const bigmul = {a, b
const umul = {a, b
var r
- if a.dig.len < Kmin || b.dig.len < 2
+ if a.dig.len < Kmin || b.dig.len < Kmin
smallmul(a, b)
else
r = mkbigint(0)