ref: b0f3b09fc1b44a8cd0715af65774fe3296b9e016
parent: 16ed56af9183b9dc0669adf1b8b5eade47902d38
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Mar 19 12:57:31 EDT 2018
Check both digits for < Kmin
--- a/lib/std/bigint.myr
+++ b/lib/std/bigint.myr
@@ -538,7 +538,7 @@
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)