summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2026-07-07 17:32:42 -0400
committerKai Gunger <kgunger12@gmail.com>2026-07-07 17:32:42 -0400
commitf9665d8aa06e11730a9d6e7af3f98ccefb324bbf (patch)
tree3f5871e762df044eefff9df9d6fb2b14cdd72f75
parent039810c285f17e1fc1fe78a8b5cb691b7616d106 (diff)
[tnslc] Make void 1 byte to fix adds
-rw-r--r--tnslc/compile/codegen.tnsl2
-rw-r--r--tnslc/compile/var.tnsl4
2 files changed, 3 insertions, 3 deletions
diff --git a/tnslc/compile/codegen.tnsl b/tnslc/compile/codegen.tnsl
index 636f16b..dae3764 100644
--- a/tnslc/compile/codegen.tnsl
+++ b/tnslc/compile/codegen.tnsl
@@ -117,6 +117,6 @@
_gen_prim(m, 8, "uint\0")
_gen_prim(m, 8, "int\0")
_gen_prim(m, 8, "float\0")
- _gen_prim(m, 8, "void\0")
+ _gen_prim(m, 1, "void\0")
;/
diff --git a/tnslc/compile/var.tnsl b/tnslc/compile/var.tnsl
index 799dc12..4b023a7 100644
--- a/tnslc/compile/var.tnsl
+++ b/tnslc/compile/var.tnsl
@@ -1485,6 +1485,8 @@ struct Var {
Var vl
vl.loc = 0
/; if (idx + 1 < self.ptrc.count)
+ _printf("Offset 8 @\n\0")
+ self._print(0)
vl.offset = 8
;; else
vl.offset = self._type`.size
@@ -1871,7 +1873,6 @@ struct Var {
;/
/; member (~CompBuf buf, ~uint8 name) [Var]
- _printf("MEMBER\n\0")
/; if (self.is_struct() == false)
_printf("ERROR: Attempted to get a member named \"\0")
_printf(name)
@@ -1924,7 +1925,6 @@ struct Var {
out.offset = out.offset + self.offset
;/
- out._print(0)
return out
;/