diff options
author | Twinaphex | 2017-09-04 22:12:28 +0200 |
---|---|---|
committer | GitHub | 2017-09-04 22:12:28 +0200 |
commit | 7e144b4b033fcb50440311a982892fa352abe121 (patch) | |
tree | dec24633f248a7ec3d27741097751b5b61b03e87 | |
parent | 12b1ae1a13434dd0bdc5305d36811643306d8e3e (diff) | |
parent | b5edf8e7d0437e5e0e82d3f91df92b2133f33cf2 (diff) | |
download | snes9x2005-7e144b4b033fcb50440311a982892fa352abe121.tar.gz snes9x2005-7e144b4b033fcb50440311a982892fa352abe121.tar.bz2 snes9x2005-7e144b4b033fcb50440311a982892fa352abe121.zip |
Merge pull request #44 from joolswills/c89_fix
c89 variable declaration
-rw-r--r-- | source/sa1.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/sa1.c b/source/sa1.c index afa3021..2f6609c 100644 --- a/source/sa1.c +++ b/source/sa1.c @@ -539,13 +539,14 @@ static void S9xSA1CharConv2(void) int32_t depthX8 = (Memory.FillRAM[0x2231] & 3) == 0 ? 64 : (Memory.FillRAM[0x2231] & 3) == 1 ? 32 : 16; uint8_t* p = &Memory.FillRAM[0x3000] + (dest & 0x7ff) + offset * depthX8; uint8_t* q = &Memory.ROM[MAX_ROM_SIZE - 0x10000] + offset * 64; + int l, b; switch(depthX8) { case 16: - for (int l = 0; l < 8; l++, q += 8) + for (l = 0; l < 8; l++, q += 8) { - for (int b = 0; b < 8; b++) + for (b = 0; b < 8; b++) { uint8_t r = q[b]; p[0] = (p[0] << 1) | ((r >> 0) & 1); @@ -555,9 +556,9 @@ static void S9xSA1CharConv2(void) } break; case 32: - for (int l = 0; l < 8; l++, q += 8) + for (l = 0; l < 8; l++, q += 8) { - for (int b = 0; b < 8; b++) + for (b = 0; b < 8; b++) { uint8_t r = q[b]; p[0] = (p[0] << 1) | ((r >> 0) & 1); @@ -569,9 +570,9 @@ static void S9xSA1CharConv2(void) } break; case 64: - for (int l = 0; l < 8; l++, q += 8) + for (l = 0; l < 8; l++, q += 8) { - for (int b = 0; b < 8; b++) + for (b = 0; b < 8; b++) { uint8_t r = q[b]; p[0] = (p[0] << 1) | ((r >> 0) & 1); |