Don't pass u64 (which may be long long) to %lu.

A type-safe StringFromFormat sure would be nice...
This commit is contained in:
comex 2014-10-09 02:00:34 -04:00
parent d4e8e3a6a3
commit 5b8722b6f2
1 changed files with 2 additions and 2 deletions

View File

@ -719,9 +719,9 @@ void Renderer::DrawDebugInfo()
debug_info += " - ";
if (SConfig::GetInstance().m_ShowFrameCount)
{
debug_info += StringFromFormat("Frame: %lu", Movie::g_currentFrame);
debug_info += StringFromFormat("Frame: %llu", (unsigned long long) Movie::g_currentFrame);
if (Movie::IsPlayingInput())
debug_info += StringFromFormat(" / %lu", Movie::g_totalFrames);
debug_info += StringFromFormat(" / %llu", (unsigned long long) Movie::g_totalFrames);
}
debug_info += "\n";