From 1552cd11c40a33729f9db0906ab870d7748f9001 Mon Sep 17 00:00:00 2001 From: Leon Styhre <leon@leonstyhre.com> Date: Sat, 29 Jul 2023 17:49:32 +0200 Subject: [PATCH] Added a missing cast --- es-app/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index b354a96a3..9c9182427 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -524,8 +524,8 @@ void applicationLoop() } while (SDL_PollEvent(&event)); } - int curTime = SDL_GetTicks(); - int deltaTime = curTime - lastTime; + int curTime {static_cast<int>(SDL_GetTicks())}; + int deltaTime {curTime - lastTime}; lastTime = curTime; // Cap deltaTime if it ever goes negative.