From 8ffb50a4bc61b51952aa78da0c6e1f002f09e1be Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Wed, 6 May 2026 04:52:02 -0400 Subject: [tnslc] better calling, issue with member setting on refs --- tnslc/compile/var.tnsl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tnslc/compile/var.tnsl') diff --git a/tnslc/compile/var.tnsl b/tnslc/compile/var.tnsl index 477a4fb..9c7c042 100644 --- a/tnslc/compile/var.tnsl +++ b/tnslc/compile/var.tnsl @@ -1183,7 +1183,7 @@ struct Var { # - If builtin then move based on size (byte, word, dword, qword) # - If pointer then move qword # - If struct then move via rep movsb - + /; if (self.is_struct() == true) # Struct set self._set_struct(buf, other) @@ -1252,7 +1252,7 @@ struct Var { /; if (vcpy.is_ptrc(i, 0) == false) i = vcpy.ptrc.count ;; else - set++ + idx++ ;/ ;/ @@ -1276,6 +1276,8 @@ struct Var { vcpy.loc = reg vcpy.offset = 0 + vcpy.ptrc.end() + vcpy.ptrc.init(4) vcpy.ptr_push(set) ;/ -- cgit v1.2.3