From b3f3b21f80d216b08494caf158d7415782c61c8c Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 31 Aug 2009 17:15:59 +0000 Subject: [PATCH] Fixed a few C99isms that prevented the sources to compile with Watcom-C. git-svn-id: svn://svn.cc65.org/cc65/trunk@4099 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/codeopt.c | 3 ++- src/cc65/coptind.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.5