summaryrefslogtreecommitdiff
path: root/tnslc/compiler.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/compiler.tnsl')
-rw-r--r--tnslc/compiler.tnsl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tnslc/compiler.tnsl b/tnslc/compiler.tnsl
index e455bb1..eb77b22 100644
--- a/tnslc/compiler.tnsl
+++ b/tnslc/compiler.tnsl
@@ -108,13 +108,13 @@ struct Path {
/; if (i < self.path_count - 1)
- pth = _alloc(new_len + 2)
+ pth = _realloc(pth, new_len + 2)
pth{new_len} = '/'
pth{new_len + 1} = 0
old_len++
new_len++
;; else
- pth = _alloc(new_len + 1)
+ pth = _realloc(pth, new_len + 1)
pth{new_len} = 0
;/
@@ -149,6 +149,10 @@ struct Path {
;/
;/
+#
+#
+#
+
/; compile (Path in, out)
;/ \ No newline at end of file