From: Laubzega Date: Fri, 21 Sep 2018 08:17:29 +0000 (-0700) Subject: Fix for variableless main(). X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f5b3c5351e0fe91551c4ff54d168d665c3cfa0c7;p=cc65 Fix for variableless main(). --- diff --git a/src/cc65/function.c b/src/cc65/function.c index 6a601db2c..eb2ad4bcd 100644 --- a/src/cc65/function.c +++ b/src/cc65/function.c @@ -523,6 +523,7 @@ void NewFunc (SymEntry* Func) /* Need a starting curly brace */ ConsumeLCurly (); + CollAppend (&CurrentFunc->LocalsBlockStack, (void *)CurrentFunc->LocalsBlockCount); /* Parse local variable declarations if any */ DeclareLocals ();