Skip to content
Snippets Groups Projects
Commit a4072260 authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

Win32: try to fix up CD printf code

parent 365879d0
No related branches found
No related tags found
1 merge request!252OpenGL: Public flatsprite: The Fixening
......@@ -180,9 +180,9 @@ static LPSTR hms(UINT seconds)
hours = minutes / 60;
minutes %= 60;
if (hours > 0)
sprintf (s, "%lu:%02lu:%02lu", (long unsigned int)hours, (long unsigned int)minutes, (long unsigned int)seconds);
sprintf (s, "%lu:%02u:%02u", (long unsigned int)hours, (unsigned char)minutes, (unsigned char)seconds);
else
sprintf (s, "%2lu:%02lu", (long unsigned int)minutes, (long unsigned int)seconds);
sprintf (s, "%2u:%02u", (unsigned char)minutes, (unsigned char)seconds);
return s;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment