From 54b716546131d6e2ad090857ae1178b05eabefee Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 23 May 2025 00:11:08 +0200 Subject: Codegen: Typecheck binary expressions --- 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 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'; -- cgit 1.4.1