From: notaz Date: Sat, 28 Dec 2024 21:43:01 +0000 (+0200) Subject: 3ds: fix build X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b64d8c9bf2c3b978e98518eb68e64a37b0c76905;p=pcsx_rearmed.git 3ds: fix build c++ and long s32 combines to a peril --- 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);