summaryrefslogtreecommitdiff
path: root/lib/std/bigint.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/bigint.myr')
-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 7b0f4bc..478d9fc 100644
--- a/lib/std/bigint.myr
+++ b/lib/std/bigint.myr
@@ -109,7 +109,7 @@ generic mkbigint = {v : @a :: integral,numeric @a
;;
val = (v : uint64)
slpush(&a.dig, (val : uint32))
- if val > Base
+ if val >= Base
slpush(&a.dig, (val/Base : uint32))
;;
-> trim(a)