diff options
Diffstat (limited to 'tnslc/c_wrap.tnsl')
-rw-r--r-- | tnslc/c_wrap.tnsl | 6 |
1 files changed, 3 insertions, 3 deletions
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 +;/ |