Don't pass u64 (which may be long long) to %lu.
A type-safe StringFromFormat sure would be nice...
This commit is contained in:
1 parent
d4e8e3a6a3
commit
5b8722b6f2
1 file changed
+2
-2
@@ -719,9 +719,9 @@ void Renderer::DrawDebugInfo()
|
|||||||
debug_info += " - ";
|
debug_info += " - ";
|
||||||
if (SConfig::GetInstance().m_ShowFrameCount)
|
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())
|
if (Movie::IsPlayingInput())
|
||||||
debug_info += StringFromFormat(" / %lu", Movie::g_totalFrames);
|
debug_info += StringFromFormat(" / %llu", (unsigned long long) Movie::g_totalFrames);
|
||||||
}
|
}
|
||||||
|
|
||||||
debug_info += "\n";
|
debug_info += "\n";
|
||||||
|
|||||||
Reference in new issue
Block a user