diff options
| author | Baitinq <[email protected]> | 2025-05-23 00:11:08 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-05-23 00:11:31 +0200 |
| commit | 54b716546131d6e2ad090857ae1178b05eabefee (patch) | |
| tree | 2c1ee8650f3138191bc2096632b9e28b17d1f9df /std/stdlib.src | |
| parent | Parser: Fix cast statement parsing (diff) | |
| download | interpreter-54b716546131d6e2ad090857ae1178b05eabefee.tar.gz interpreter-54b716546131d6e2ad090857ae1178b05eabefee.tar.bz2 interpreter-54b716546131d6e2ad090857ae1178b05eabefee.zip | |
Codegen: Typecheck binary expressions
Diffstat (limited to '')
| -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 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'; |