From 58c6614c03f17aa6192539c98ce63e67da355d36 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 15 Sep 2018 22:57:22 +0100 Subject: [PATCH] silent few warnings --- src/hwrenderer/utility/hw_clock.cpp | 2 +- src/v_framebuffer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hwrenderer/utility/hw_clock.cpp b/src/hwrenderer/utility/hw_clock.cpp index 40c61924b..a34b1fdb1 100644 --- a/src/hwrenderer/utility/hw_clock.cpp +++ b/src/hwrenderer/utility/hw_clock.cpp @@ -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) diff --git a/src/v_framebuffer.cpp b/src/v_framebuffer.cpp index 0b1338d37..b4a5807f9 100644 --- a/src/v_framebuffer.cpp +++ b/src/v_framebuffer.cpp @@ -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],