From 0b3db11cd7ddb4c06ce797ed001349f8717be438 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Mon, 27 Apr 2026 13:58:59 +0800 Subject: [PATCH] import from UXP: [gfx] Explicitly cast calculation to int32. (602a2e35) --- gfx/2d/FilterNodeSoftware.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/2d/FilterNodeSoftware.cpp b/gfx/2d/FilterNodeSoftware.cpp index db9500b0d..eb3aac900 100644 --- a/gfx/2d/FilterNodeSoftware.cpp +++ b/gfx/2d/FilterNodeSoftware.cpp @@ -2658,9 +2658,9 @@ FilterNodeDisplacementMapSoftware::Render(const IntRect& aRect) uint32_t mapIndex = y * mapStride + 4 * x; uint32_t targIndex = y * targetStride + 4 * x; int32_t sourceX = x + - scaleOver255 * mapData[mapIndex + xChannel] + scaleAdjustment; + int32_t(scaleOver255 * mapData[mapIndex + xChannel] + scaleAdjustment); int32_t sourceY = y + - scaleOver255 * mapData[mapIndex + yChannel] + scaleAdjustment; + int32_t(scaleOver255 * mapData[mapIndex + yChannel] + scaleAdjustment); *(uint32_t*)(targetData + targIndex) = ColorAtPoint(sourceData, sourceStride, sourceX, sourceY); }