From 88a8dde0d7a1ab8a7677473b4d39f4b75fa4727b Mon Sep 17 00:00:00 2001 From: Fayaz Shaikh <61674751+fayaz12g@users.noreply.github.com> Date: Wed, 4 Mar 2026 14:04:16 -0500 Subject: [PATCH] Update to C++ style static cast --- Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index 1db7f5165..308e66a85 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -88,7 +88,7 @@ BOOL g_bWidescreen = TRUE; int g_iScreenWidth = 1920; int g_iScreenHeight = 1080; -float g_iAspectRatio = (float)g_iScreenWidth / (float)g_iScreenHeight; +float g_iAspectRatio = static_castg_iScreenWidth / g_iScreenHeight; char g_Win64Username[17] = { 0 }; wchar_t g_Win64UsernameW[17] = { 0 }; @@ -102,7 +102,7 @@ static WINDOWPLACEMENT g_wpPrev = { sizeof(g_wpPrev) }; //-------------------------------------------------------------------------------------- void UpdateAspectRatio(int width, int height) { - g_iAspectRatio = (float)width / (float)height; + g_iAspectRatio = static_castwidth / height; } struct Win64LaunchOptions