diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-13 21:49:29 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-13 21:49:29 +0000 |
| commit | 3712c958f4ef31ce006edeab6c34875ea5ae08f8 (patch) | |
| tree | 6ad5b51da9b2218dd8474d3a1448600c89344361 /tests/tests2/79_vla_continue.c | |
| parent | c39bc9caa7b575afddf02fb43b0a8d9ca6952efd (diff) | |
| download | tinycc-3712c958f4ef31ce006edeab6c34875ea5ae08f8.tar.gz tinycc-3712c958f4ef31ce006edeab6c34875ea5ae08f8.tar.bz2 | |
tests/tests2/79_vla_continue.c: Fix off-by-one error.
Diffstat (limited to 'tests/tests2/79_vla_continue.c')
| -rw-r--r-- | tests/tests2/79_vla_continue.c | 4 |
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"); |
