sub_8113F14; make C code compatible with modern cc1

This commit is contained in:
PikalaxALT committed 2018-11-07 15:37:00 -05:00
1 parent 65b57e5a26
commit 325cc10aa7
4 files changed
+67 -76

No files matched your search

+6 -1
View File
@@ -614,7 +614,12 @@ u16 CalculateChecksum(void *data, u16 size)
u32 checksum = 0;
for (i = 0; i < (size / 4); i++)
checksum += *((u32 *)data)++;
{
// checksum += *(u32 *)data++;
// For compatibility with modern gcc, these statements were separated.
checksum += *(u32 *)data;
data += 4;
}
return ((checksum >> 16) + checksum);
}