From c82a14c252e10081afe930d134afc67bc570ba51 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 16 Apr 2020 16:44:20 +0100 Subject: [PATCH] Nasal: fix build on non-C99 mode It seems GCC at least is strict about C99 mode. --- simgear/nasal/lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/nasal/lib.c b/simgear/nasal/lib.c index 2250538e..67619909 100644 --- a/simgear/nasal/lib.c +++ b/simgear/nasal/lib.c @@ -219,7 +219,8 @@ static naRef f_vecindex(naContext c, naRef me, int argc, naRef* args) if(naIsNil(vec) || naIsNil(value)) ARGERR(); if(!naIsVector(vec)) return naNil(); const int len = naVec_size(vec); - for(int i=0; i