From f5b3c5351e0fe91551c4ff54d168d665c3cfa0c7 Mon Sep 17 00:00:00 2001 From: Laubzega Date: Fri, 21 Sep 2018 01:17:29 -0700 Subject: [PATCH] Fix for variableless main(). --- src/cc65/function.c | 1 + 1 file changed, 1 insertion(+) 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 (); -- 2.39.5