From a870b2a7bddfd577445f186499d1843bc750e224 Mon Sep 17 00:00:00 2001 From: dcvz Date: Thu, 1 Aug 2024 22:34:57 +0200 Subject: [PATCH] fix compilation issue --- src/render/rt64_render_target.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/rt64_render_target.cpp b/src/render/rt64_render_target.cpp index e62bb48..a23da72 100644 --- a/src/render/rt64_render_target.cpp +++ b/src/render/rt64_render_target.cpp @@ -424,7 +424,7 @@ namespace RT64 { scaledWidth = uint32_t(expandedColorWidthClamped); scaledHeight = uint32_t(colorHeightClamped); - const long expandedPixels = std::labs(scaledWidth - nativeColorWidthClamped) / 2; + const long expandedPixels = std::labs(long(scaledWidth) - nativeColorWidthClamped) / 2; const long nativeAlignment = std::max(lround(resolutionScale.y), 1L); misalignmentX = (nativeAlignment - (expandedPixels % nativeAlignment)) % nativeAlignment; }