From e4f8802192a3e97c4c77ffdd8274831a93f69fa6 Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 26 Aug 2022 12:13:04 +0200 Subject: [PATCH] sknsspr: fix sign overflow --- src/mame/kaneko/sknsspr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/kaneko/sknsspr.cpp b/src/mame/kaneko/sknsspr.cpp index eb804b1dba1..d27b38ad044 100644 --- a/src/mame/kaneko/sknsspr.cpp +++ b/src/mame/kaneko/sknsspr.cpp @@ -88,9 +88,9 @@ void sknsspr_device::skns_sprite_kludge(int x, int y) u32 zxd = 0x10000-(zx_s); \ u32 zys = 0x10000-(zy_m); \ u32 zyd = 0x10000-(zy_s); \ - int xs, ys, xd, yd, old, old2; \ + u32 bxs = 0, bys = 0, xs, ys; \ + int xd, yd, old, old2; \ int step_spr = step; \ - int bxs = 0, bys = 0; \ rectangle clip; \ clip.min_x = cliprect.min_x<<16; \ clip.max_x = (cliprect.max_x+1)<<16; \