diff --git a/src/cc65/codeopt.c b/src/cc65/codeopt.c index abd5fdb63..422496792 100644 --- a/src/cc65/codeopt.c +++ b/src/cc65/codeopt.c @@ -101,12 +101,13 @@ static unsigned OptShift1 (CodeSeg* S) */ { unsigned Changes = 0; + unsigned I; /* Generate register info */ CS_GenRegInfo (S); /* Walk over the entries */ - unsigned I = 0; + I = 0; while (I < CS_GetEntryCount (S)) { CodeEntry* N; diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index 95022e6c1..21607d0d6 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -805,12 +805,13 @@ unsigned OptCondBranches2 (CodeSeg* S) */ { unsigned Changes = 0; + unsigned I; /* Generate register info for this step */ CS_GenRegInfo (S); /* Walk over the entries */ - unsigned I = 0; + I = 0; while (I < CS_GetEntryCount (S)) { CodeEntry* N;