From b13928c584c2552c64d7d13d52ce4ad0752676b0 Mon Sep 17 00:00:00 2001 From: Yashas Date: Sat, 14 Jan 2017 20:10:56 +0530 Subject: [PATCH] moved a declaration to the start of block Abiding by the C89 declaration rules so that AppVeyor build can succeed. --- source/compiler/sc2.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/compiler/sc2.c b/source/compiler/sc2.c index 270de9c..ec54173 100644 --- a/source/compiler/sc2.c +++ b/source/compiler/sc2.c @@ -1344,19 +1344,18 @@ static int command(void) break; default: { extern char *sc_tokens[];/* forward declaration */ + char s2[33] = "-"; if ((char)tok == '-') { if (lex(&val, &str) == tNUMBER) { outval(-val, FALSE); code_idx += opargs(1); break; - } else { - char s2[33] = "-"; + } else { strcpy((s2 + 1), str); error(1, sc_tokens[tSYMBOL - tFIRST], s2); break; }/* if */ - }/* if */ - char s2[20]; + }/* if */ if (tok<256) sprintf(s2,"%c",(char)tok); else