aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJools Wills2017-09-04 17:13:36 +0000
committerJools Wills2017-09-04 17:18:57 +0000
commitb5edf8e7d0437e5e0e82d3f91df92b2133f33cf2 (patch)
treedec24633f248a7ec3d27741097751b5b61b03e87 /source
parent12b1ae1a13434dd0bdc5305d36811643306d8e3e (diff)
downloadsnesemu-b5edf8e7d0437e5e0e82d3f91df92b2133f33cf2.tar.gz
snesemu-b5edf8e7d0437e5e0e82d3f91df92b2133f33cf2.tar.bz2
snesemu-b5edf8e7d0437e5e0e82d3f91df92b2133f33cf2.zip
c89 variable declaration
Diffstat (limited to 'source')
-rw-r--r--source/sa1.c13
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);