* Change a printf for some architectures.
This commit is contained in:
jean.chalard
2010-01-27 14:59:21 +00:00
parent f38dbf1746
commit e31ddd96ae
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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);