summaryrefslogtreecommitdiff
path: root/tnslc/vector_test.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-08-05 17:48:15 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-08-05 17:48:15 -0400
commitadc97807daa20efd16fcc9ef82f773bdd23f63bd (patch)
tree80a248a90dedf3ebce92cd576cf0db70e359959c /tnslc/vector_test.tnsl
parent6ee6814c269aa5a5c2ea8e031db3a335df2c1f2d (diff)
Fix issue with cf block conditionals
Diffstat (limited to 'tnslc/vector_test.tnsl')
-rw-r--r--tnslc/vector_test.tnsl7
1 files changed, 4 insertions, 3 deletions
diff --git a/tnslc/vector_test.tnsl b/tnslc/vector_test.tnsl
index ee4a25c..c74ddf9 100644
--- a/tnslc/vector_test.tnsl
+++ b/tnslc/vector_test.tnsl
@@ -15,8 +15,9 @@
Vector vec
vec.start(1)
+ int mx = 100
uint8 buf = 0
- /; loop (int i = 0; i < 20) [i++]
+ /; loop (int i = 0; i < mx) [i++]
buf = 'A' + i
vec.push(~buf)
;/
@@ -26,10 +27,10 @@
_printf(vec.dat)
- /; loop (int i = 0; i < 21) [i++]
+ /; loop (int i = 0; i < mx + 1) [i++]
vec.pop()
;/
- vec.clean()
+ vec._del()
return 0
;/ \ No newline at end of file