From 19cae8c56df66edcd877b34c0aa76b96cacfed59 Mon Sep 17 00:00:00 2001 From: igor Date: Mon, 9 Mar 2026 14:24:31 +0100 Subject: [PATCH] adjusted the type checker to properly process strings --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 762f0e1..923a0ae 100644 --- a/main.py +++ b/main.py @@ -4877,7 +4877,8 @@ class Assembler: print(f"[v3] type-check: '{defn.name}' -> extern '{word.name}' skipped (unknown depth)") continue if opc == _OP_LIT: - depth += 1 + # String literals push 2 values (addr + len), others push 1. + depth += 2 if isinstance(node.data, str) else 1 elif opc == _OP_WP: depth += 1 elif opc == _OP_LIST_LIT: