From d21c66af96878e5efff081ec861af4350d37bffe Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 18 Mar 2023 17:16:50 -0400 Subject: Reference and dereference --- tnslc/c_wrap.tnsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tnslc/c_wrap.tnsl') diff --git a/tnslc/c_wrap.tnsl b/tnslc/c_wrap.tnsl index f35b808..d1004bb 100644 --- a/tnslc/c_wrap.tnsl +++ b/tnslc/c_wrap.tnsl @@ -34,7 +34,7 @@ ;/ /; _delete (~void ptr) - # setup call + # setup call by clearing most values asm "mov rdi, rax" asm "mov rsi, 0" asm "mov rdx, 0" @@ -56,7 +56,7 @@ struct Array { /; method Array /; resize (int num_el) - _realloc(dat, num_el * self.el_size) + _realloc(self.dat, self.num_el * self.el_size) ;/ /; get (int i) [~void] @@ -69,4 +69,4 @@ struct Array { /; set (int i, ~void data) ;/ -;/ \ No newline at end of file +;/ -- cgit v1.2.3