diff --git a/projects/mtg/src/GameApp.cpp b/projects/mtg/src/GameApp.cpp index e6b1661e1..925cd7a57 100644 --- a/projects/mtg/src/GameApp.cpp +++ b/projects/mtg/src/GameApp.cpp @@ -187,10 +187,10 @@ void GameApp::Create() JSoundSystem::GetInstance()->SetMusicVolume(options[Options::MUSICVOLUME].number); char buf[512]; - sprintf(buf, "size of MTGCard : %lu\n" , sizeof(MTGCard)); + sprintf(buf, "size of MTGCard : %llu\n", (long long unsigned int)sizeof(MTGCard)); OutputDebugString(buf); - sprintf(buf, "size of CardPrimitive : %lu\n" , sizeof(CardPrimitive)); + sprintf(buf, "size of CardPrimitive : %llu\n" , (long long unsigned int)sizeof(CardPrimitive)); OutputDebugString(buf); } diff --git a/projects/mtg/src/WResourceManager.cpp b/projects/mtg/src/WResourceManager.cpp index 7826fe4d7..f5943ef18 100644 --- a/projects/mtg/src/WResourceManager.cpp +++ b/projects/mtg/src/WResourceManager.cpp @@ -57,8 +57,8 @@ void WResourceManager::DebugRender(){ if(textureWCache.totalSize > textureWCache.cacheSize) man = textureWCache.totalSize - textureWCache.cacheSize; - sprintf(buf,"Textures %u+%lu (of %u) items (%u misses), Pixels: %lu (of %lu) + %lu", - textureWCache.cacheItems, textureWCache.managed.size(),textureWCache.maxCached, + sprintf(buf,"Textures %u+%llu (of %u) items (%u misses), Pixels: %lu (of %lu) + %lu", + textureWCache.cacheItems, (long long unsigned int)textureWCache.managed.size(),textureWCache.maxCached, misses,textureWCache.cacheSize,textureWCache.maxCacheSize,man); font->DrawString(buf, 10,5);