diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index e3cafede..bfcd451e 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -258,7 +258,7 @@ void VulkanExampleBase::renderFrame() fpsTimer += (float)tDiff; if (fpsTimer > 1000.0f) { - lastFPS = (float)frameCounter * (1000.0f / fpsTimer); + lastFPS = static_cast((float)frameCounter * (1000.0f / fpsTimer)); #if defined(_WIN32) if (!settings.overlay) { std::string windowTitle = getWindowTitle();