ref: 1ed7430691158c6a2a0c5a7bae36e9e49a43a0e2
parent: ad2292fd624c6e2979388fb93f06dd20643ca507
author: Ori Bernstein <[email protected]>
date: Sun Jan 27 17:30:04 EST 2019
Fix formatting.
--- a/lib/std/bigint.myr
+++ b/lib/std/bigint.myr
@@ -478,12 +478,12 @@
else
match bigcmp(a, b)
| `Before: /* a is negative */
- a.sign = b.sign
- -> usub(b, a)
+ a.sign = b.sign
+ -> usub(b, a)
| `After: /* b is negative */
- -> usub(a, b)
+ -> usub(a, b)
| `Equal:
- -> bigclear(a)
+ -> bigclear(a)
;;
;;
-> a
@@ -762,7 +762,7 @@
r = mkbigint(1)
n = 0
- while !bigiszero(exp)
+ while !bigiszero(exp)
if (exp.dig[0] & 1) != 0
bigmul(r, base)
bigmod(r, mod)