summaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorOri Bernstein <ori@pingthings.io>2020-09-20 15:59:06 -0400
committerOri Bernstein <ori@pingthings.io>2020-09-20 15:59:06 -0400
commit285be77897e18d68efede25a98f423bddd4f2cb9 (patch)
treeed3eecbafa64733bddacf330cc4c65e0497cf970 /lib/std
parent433357fe9fd4e99c70c780a0204244f5fd618cf2 (diff)
downloadmc-285be77897e18d68efede25a98f423bddd4f2cb9.tar.gz
Fix range checking for numbers.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/test/fmt.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/test/fmt.myr b/lib/std/test/fmt.myr
index 0d0385d..1522534 100644
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -139,9 +139,9 @@ const variablewidth = {c
check(c, "77", "{w=?}", 77, (-1 : int8))
check(c, "77", "{w=?}", 77, (-1 : int16))
check(c, "77", "{w=?}", 77, (-1 : int32))
- check(c, "77", "{w=?}", 77, (-4294967294 : int32))
+ check(c, "77", "{w=?}", 77, (-4294967294L : int32))
check(c, "77", "{w=?}", 77, (-1 : int64))
- check(c, "77", "{w=?}", 77, (-18446744073709551614 : int64))
+ check(c, "77", "{w=?}", 77, (-18446744073709551614L : int64))
check(c, "77", "{w=?}", 77, (0 : int8))
check(c, "77", "{w=?}", 77, (0 : int16))
check(c, "77", "{w=?}", 77, (0 : int32))