From 38723762d5e3c61dab16d6e40bc905b53e21baca Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Mon, 8 Dec 2025 21:59:55 -0500 Subject: fix memory issues with type resolution --- tnslc/compile/var.tnsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tnslc/compile/var.tnsl') diff --git a/tnslc/compile/var.tnsl b/tnslc/compile/var.tnsl index 34c101a..69108ce 100644 --- a/tnslc/compile/var.tnsl +++ b/tnslc/compile/var.tnsl @@ -122,7 +122,11 @@ struct Var { _indent(idt) _printf(" type: \0") - _printf(self._type`.name) + /; if (self._type !== NULL) + _printf(self._type`.name) + ;; else + _printf("(nil)\0") + ;/ _printf("\n\0") _indent(idt) -- cgit v1.2.3