From adc97807daa20efd16fcc9ef82f773bdd23f63bd Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 5 Aug 2023 17:48:15 -0400 Subject: Fix issue with cf block conditionals --- tnslc/vector_test.tnsl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tnslc/vector_test.tnsl') 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 -- cgit v1.2.3