From 086d80e8c439fa7e6846b34c4848355d04efdd5c Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 1 Dec 2002 23:32:01 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1684 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/function.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (); -- 2.39.5