From: cuz Date: Sun, 16 Sep 2001 20:48:22 +0000 (+0000) Subject: Fixed a minor problem X-Git-Tag: V2.12.0~2642 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95551a2fd1e5d5e48981e965484521a1c88c6e82;p=cc65 Fixed a minor problem git-svn-id: svn://svn.cc65.org/cc65/trunk@942 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeinfo.c b/src/cc65/codeinfo.c index 982ce4cec..900066c51 100644 --- a/src/cc65/codeinfo.c +++ b/src/cc65/codeinfo.c @@ -276,6 +276,16 @@ int IsZPName (const char* Name) +static unsigned char GetRegInfo1 (CodeSeg* S, + CodeEntry* E, + int Index, + Collection* Visited, + unsigned char Used, + unsigned char Unused); +/* Recursively called subfunction for GetRegInfo. */ + + + static unsigned char GetRegInfo2 (CodeSeg* S, CodeEntry* E, int Index, @@ -365,7 +375,7 @@ static unsigned char GetRegInfo2 (CodeSeg* S, unsigned char U1; unsigned char U2; - U1 = GetRegInfo2 (S, E->JumpTo->Owner, -1, Visited, Used, Unused); + U1 = GetRegInfo1 (S, E->JumpTo->Owner, -1, Visited, Used, Unused); if (U1 == REG_AXY) { /* All registers used, no need for second call */ return REG_AXY; @@ -376,7 +386,7 @@ static unsigned char GetRegInfo2 (CodeSeg* S, if ((E = CS_GetEntry (S, ++Index)) == 0) { Internal ("GetRegInfo2: No next entry!"); } - U2 = GetRegInfo2 (S, E, Index, Visited, Used, Unused); + U2 = GetRegInfo1 (S, E, Index, Visited, Used, Unused); return U1 | U2; /* Used in any of the branches */ } else {