From 17ff2b2d6ecc9008158e49f6b6dd11abf5aa055e Mon Sep 17 00:00:00 2001 From: rogerman Date: Sat, 9 Sep 2017 13:00:35 -0700 Subject: [PATCH] vfat.cpp: Silence a couple of compiler warnings. --- desmume/src/utils/vfat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}