summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2022-08-26 12:13:04 +0200
committer hap <happppp@users.noreply.github.com>2022-08-26 12:13:15 +0200
commite4f8802192a3e97c4c77ffdd8274831a93f69fa6 (patch)
treec00383151b4e3dc57c06ad86bda25142ece9069d /src
parente4efa7eec998d72ecbe81af8c9c5033fdc61d85c (diff)
sknsspr: fix sign overflow
Diffstat (limited to 'src')
-rw-r--r--src/mame/kaneko/sknsspr.cpp4
1 files 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; \