mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Cast size_t to unsigned long for printf to deal with (32-bit)
systems where size_t is typedef int. It's either this or use the C99 %zu but while we can probably safely assume C99 compilers, I am not at all sure that that's the case for stdio libraries and this solution is fairly low-impact. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6535 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -357,7 +357,7 @@ void LoadStateCallback(u64 userdata, int cyclesLate)
|
||||
buffer = new u8[sz];
|
||||
int x;
|
||||
if ((x = (int)fread(buffer, 1, sz, f)) != (int)sz)
|
||||
PanicAlert("wtf? %d %lu", x, sz);
|
||||
PanicAlert("wtf? %d %lu", x, (unsigned long)sz);
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
@ -457,7 +457,7 @@ void VerifyStateCallback(u64 userdata, int cyclesLate)
|
||||
buffer = new u8[sz];
|
||||
int x;
|
||||
if ((x = (int)fread(buffer, 1, sz, f)) != (int)sz)
|
||||
PanicAlert("wtf? %d %lu", x, sz);
|
||||
PanicAlert("wtf? %d %lu", x, (unsigned long)sz);
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
|
Reference in New Issue
Block a user