"warning fixes" commit introduced warnings; fix them. (And I refuse to use PRI macros.)

This commit is contained in:
comex 2013-11-18 14:34:21 -05:00
parent b863e40677
commit 4f13f6ecaa

View File

@ -43,12 +43,12 @@ GCMemcard::GCMemcard(const char *filename, bool forceCreation, bool sjis)
auto size = mcdFile.GetSize(); auto size = mcdFile.GetSize();
if (size < MC_FST_BLOCKS*BLOCK_SIZE) if (size < MC_FST_BLOCKS*BLOCK_SIZE)
{ {
PanicAlertT("%s failed to load as a memorycard \nfile is not large enough to be a valid memory card file (0x%x bytes)", filename, size); PanicAlertT("%s failed to load as a memorycard \nfile is not large enough to be a valid memory card file (0x%x bytes)", filename, (unsigned) size);
return; return;
} }
if (size % BLOCK_SIZE) if (size % BLOCK_SIZE)
{ {
PanicAlertT("%s failed to load as a memorycard \n Card file size is invalid (0x%x bytes)", filename, size); PanicAlertT("%s failed to load as a memorycard \n Card file size is invalid (0x%x bytes)", filename, (unsigned) size);
return; return;
} }
@ -63,7 +63,7 @@ GCMemcard::GCMemcard(const char *filename, bool forceCreation, bool sjis)
case MemCard2043Mb: case MemCard2043Mb:
break; break;
default: default:
PanicAlertT("%s failed to load as a memorycard \n Card size is invalid (0x%x bytes)", filename, size); PanicAlertT("%s failed to load as a memorycard \n Card size is invalid (0x%x bytes)", filename, (unsigned) size);
return; return;
} }
} }