about summary refs log tree commit diff
path: root/std/stdlib.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-05-17 20:33:52 +0200
committerBaitinq <[email protected]>2025-05-17 20:33:52 +0200
commiteba3534d30228b58e7b1d61a1208afde9ea8c0cc (patch)
tree72980c6ab9e24b20d66702533f6142a699564a87 /std/stdlib.src
parentMisc: Add support for building on windows (diff)
downloadpry-lang-eba3534d30228b58e7b1d61a1208afde9ea8c0cc.tar.gz
pry-lang-eba3534d30228b58e7b1d61a1208afde9ea8c0cc.tar.bz2
pry-lang-eba3534d30228b58e7b1d61a1208afde9ea8c0cc.zip
stdlib: Fix isdigit
Diffstat (limited to 'std/stdlib.src')
-rw-r--r--std/stdlib.src4
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;
 		};
 	};