about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-06-02 23:32:08 +0200
committerBaitinq <[email protected]>2025-06-02 23:32:08 +0200
commit641a2ed356961d5a4af643b9394bfd2a8b06dda5 (patch)
tree06dc873e4ed6f0334a0c10a41c76afd30339f949 /src/bootstrap
parentBootstrap: Tokenizer: Cleanup using slices (diff)
downloadinterpreter-641a2ed356961d5a4af643b9394bfd2a8b06dda5.tar.gz
interpreter-641a2ed356961d5a4af643b9394bfd2a8b06dda5.tar.bz2
interpreter-641a2ed356961d5a4af643b9394bfd2a8b06dda5.zip
Codegen: Fix sizeof
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/tokenizer.src3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bootstrap/tokenizer.src b/src/bootstrap/tokenizer.src
index 3cbb6c1..2f57b02 100644
--- a/src/bootstrap/tokenizer.src
+++ b/src/bootstrap/tokenizer.src
@@ -104,8 +104,7 @@ let print_tokens = (ts: *token, ts_len: i64) => i64 {
 			printf("Number: %d\n", *cast(*i64, to.data));
 		};
 		if (to.type == TOKEN_BOOLEAN) {
-			printf("Boolean: %d\n", cast(i1, to.data));
-			/* TODO: FIX */
+			printf("Boolean: %d\n", *cast(*bool, to.data));
 		};
 		if (to.type == TOKEN_NULL) {
 			printf("Null\n");