diff --git a/desmume/src/utils/vfat.cpp b/desmume/src/utils/vfat.cpp index 0d4fa0b88..278bf590f 100644 --- a/desmume/src/utils/vfat.cpp +++ b/desmume/src/utils/vfat.cpp @@ -199,7 +199,7 @@ bool VFAT::build(const char* path, int extra_MB) if(dataSectors>=(0x80000000>>9)) { - printf("error allocating memory for fat (%d KBytes)\n",(dataSectors*512)/1024); + printf("error allocating memory for fat (%llu KBytes)\n",(dataSectors*512)/1024); printf("total fat sizes > 2GB are never going to work\n"); } @@ -210,7 +210,7 @@ bool VFAT::build(const char* path, int extra_MB) } catch(std::bad_alloc) { - printf("error allocating memory for fat (%d KBytes)\n",(dataSectors*512)/1024); + printf("error allocating memory for fat (%llu KBytes)\n",(dataSectors*512)/1024); printf("(out of memory)\n"); return false; } @@ -255,4 +255,4 @@ EMUFILE* VFAT::detach() EMUFILE* ret = file; file = NULL; return ret; -} \ No newline at end of file +}