diff options
| author | Baitinq <[email protected]> | 2025-05-17 20:33:52 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-05-17 20:33:52 +0200 |
| commit | eba3534d30228b58e7b1d61a1208afde9ea8c0cc (patch) | |
| tree | 72980c6ab9e24b20d66702533f6142a699564a87 | |
| parent | Misc: Add support for building on windows (diff) | |
| download | interpreter-eba3534d30228b58e7b1d61a1208afde9ea8c0cc.tar.gz interpreter-eba3534d30228b58e7b1d61a1208afde9ea8c0cc.tar.bz2 interpreter-eba3534d30228b58e7b1d61a1208afde9ea8c0cc.zip | |
stdlib: Fix isdigit
| -rw-r--r-- | std/stdlib.src | 4 |
1 files changed, 2 insertions, 2 deletions
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; }; }; |