From eba3534d30228b58e7b1d61a1208afde9ea8c0cc Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 17 May 2025 20:33:52 +0200 Subject: stdlib: Fix isdigit --- std/stdlib.src | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/stdlib.src') diff --git a/std/stdlib.src b/std/stdlib.src index e370446..fa90707 100644 --- a/std/stdlib.src +++ b/std/stdlib.src @@ -32,8 +32,8 @@ let strcmp = (stra: *i8, strb: *i8) => bool { }; let isdigit = (c: i8) => bool { - if c > '0' { - if c < '9' { + if c >= '0' { + if c <= '9' { return true; }; }; -- cgit 1.4.1