about summary refs log tree commit diff
path: root/std/stdlib.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-05-23 00:11:08 +0200
committerBaitinq <[email protected]>2025-05-23 00:11:31 +0200
commit54b716546131d6e2ad090857ae1178b05eabefee (patch)
tree2c1ee8650f3138191bc2096632b9e28b17d1f9df /std/stdlib.src
parentParser: Fix cast statement parsing (diff)
downloadpry-lang-54b716546131d6e2ad090857ae1178b05eabefee.tar.gz
pry-lang-54b716546131d6e2ad090857ae1178b05eabefee.tar.bz2
pry-lang-54b716546131d6e2ad090857ae1178b05eabefee.zip
Codegen: Typecheck binary expressions
Diffstat (limited to '')
-rw-r--r--std/stdlib.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/stdlib.src b/std/stdlib.src
index fa90707..004c249 100644
--- a/std/stdlib.src
+++ b/std/stdlib.src
@@ -10,8 +10,8 @@ let println = (str: *i8, args: varargs) => void {
 let strcmp = (stra: *i8, strb: *i8) => bool {
 	let i = 0;
 	while true {
-		let ca = (*(stra + i));
-		let cb = (*(strb + i));
+		let ca = (*(stra + cast(*i8, i)));
+		let cb = (*(strb + cast(*i8, i)));
 
 		if ca == '\0' {
 			return cb == '\0';