From 74dd43e6f6eb7a00bea1e64510ea8ff86bd8d6a0 Mon Sep 17 00:00:00 2001 From: la <76826837+3UR@users.noreply.github.com> Date: Wed, 4 Mar 2026 07:58:35 +1000 Subject: [PATCH] chore: replace c style casts with `static_cast` to match the code conventions --- Windows_Libs/Dev/Render/RendererTexture.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Windows_Libs/Dev/Render/RendererTexture.cpp b/Windows_Libs/Dev/Render/RendererTexture.cpp index 295670b..0ffeb10 100644 --- a/Windows_Libs/Dev/Render/RendererTexture.cpp +++ b/Windows_Libs/Dev/Render/RendererTexture.cpp @@ -201,8 +201,8 @@ void Renderer::TextureData(int width, int height, void* data, int level, C4JRend level, NULL, data, - (UINT)(width * 4), - (UINT)(width * height * 4) + static_cast(width * 4), + static_cast(width * height * 4) ); } @@ -228,8 +228,8 @@ void Renderer::TextureDataUpdate(int xoffset, int yoffset, int width, int height level, &box, data, - (UINT)(width * 4), - (UINT)(width * height * 4) + static_cast(width * 4), + static_cast(width * height * 4) ); }