aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-11-13 21:49:29 +0000
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-11-13 21:49:29 +0000
commit3712c958f4ef31ce006edeab6c34875ea5ae08f8 (patch)
tree6ad5b51da9b2218dd8474d3a1448600c89344361 /tests
parentc39bc9caa7b575afddf02fb43b0a8d9ca6952efd (diff)
downloadtinycc-3712c958f4ef31ce006edeab6c34875ea5ae08f8.tar.gz
tinycc-3712c958f4ef31ce006edeab6c34875ea5ae08f8.tar.bz2
tests/tests2/79_vla_continue.c: Fix off-by-one error.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests2/79_vla_continue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests2/79_vla_continue.c b/tests/tests2/79_vla_continue.c
index 19301e0..91215c9 100644
--- a/tests/tests2/79_vla_continue.c
+++ b/tests/tests2/79_vla_continue.c
@@ -69,10 +69,10 @@ void test4()
do {
int a[f()];
- addr[count] = a;
+ addr[--count] = a;
continue;
- } while(count--);
+ } while (count);
if(addr[9] == addr[0]) {
printf("OK\n");