From 3712c958f4ef31ce006edeab6c34875ea5ae08f8 Mon Sep 17 00:00:00 2001 From: Edmund Grimley Evans Date: Fri, 13 Nov 2015 21:49:29 +0000 Subject: [PATCH] tests/tests2/79_vla_continue.c: Fix off-by-one error. --- tests/tests2/79_vla_continue.c | 4 ++-- 1 file 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");