From: cuz Date: Sun, 1 Dec 2002 23:32:01 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~1968 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=086d80e8c439fa7e6846b34c4848355d04efdd5c;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1684 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/function.c b/src/cc65/function.c index 09ed488e7..e4dbe83d8 100644 --- a/src/cc65/function.c +++ b/src/cc65/function.c @@ -395,6 +395,9 @@ void NewFunc (SymEntry* Func) g_stackcheck (); } + /* Setup the stack */ + oursp = 0; + /* Walk through the parameter list and allocate register variable space * for parameters declared as register. Generate code to swap the contents * of the register bank with the save area on the stack. @@ -426,9 +429,6 @@ void NewFunc (SymEntry* Func) Param = Param->NextSym; } - /* Setup the stack */ - oursp = 0; - /* Need a starting curly brace */ ConsumeLCurly ();