silent few warnings

This commit is contained in:
David Carlier 2018-09-15 22:57:22 +01:00 committed by Christoph Oelckers
parent 74d939c0d2
commit 58c6614c03
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ void CheckBench()
AppendRenderTimes(compose);
AppendLightStats(compose);
//AppendMissingTextureStats(compose);
compose.AppendFormat("%llu fps\n\n", screen->GetLastFPS());
compose.AppendFormat("%llu fps\n\n", (unsigned long long)screen->GetLastFPS());
FILE *f = fopen("benchmarks.txt", "at");
if (f != NULL)

View File

@ -227,7 +227,7 @@ void DFrameBuffer::DrawRateStuff ()
int textScale = active_con_scale();
chars = mysnprintf (fpsbuff, countof(fpsbuff), "%2llu ms (%3llu fps)", howlong, LastCount);
chars = mysnprintf (fpsbuff, countof(fpsbuff), "%2llu ms (%3llu fps)", (unsigned long long)howlong, (unsigned long long)LastCount);
rate_x = Width / textScale - ConFont->StringWidth(&fpsbuff[0]);
Clear (rate_x * textScale, 0, Width, ConFont->GetHeight() * textScale, GPalette.BlackIndex, 0);
DrawText (ConFont, CR_WHITE, rate_x, 0, (char *)&fpsbuff[0],