From b64d8c9bf2c3b978e98518eb68e64a37b0c76905 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 28 Dec 2024 23:43:01 +0200 Subject: [PATCH] 3ds: fix build c++ and long s32 combines to a peril --- plugins/gpu_unai/gpu_raster_polygon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gpu_unai/gpu_raster_polygon.h b/plugins/gpu_unai/gpu_raster_polygon.h index fe7a8186..9b259bb1 100644 --- a/plugins/gpu_unai/gpu_raster_polygon.h +++ b/plugins/gpu_unai/gpu_raster_polygon.h @@ -200,7 +200,7 @@ static bool polyUseTriangle(const PolyVertex *vbuf, int tri_num, const PolyVerte y_off = GPU_EXPANDSIGN(lowest_y + y_off) - lowest_y; // Determine if triangle is completely outside clipping range - int xmin, xmax, ymin, ymax; + s32 xmin, xmax, ymin, ymax; xmin = gpu_unai.DrawingArea[0]; xmax = gpu_unai.DrawingArea[2]; ymin = gpu_unai.DrawingArea[1]; ymax = gpu_unai.DrawingArea[3]; int clipped_lowest_x = Max2(xmin, lowest_x + x_off); -- 2.39.5