summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-07-14 23:14:45 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-07-14 23:14:45 +0000
commit5f0436a948fef5d66e1d17dcf7f96a03efab00c7 (patch)
treeb9e3138c6280d3942ad513db0ae6547b4bd73c2a
parent922a6fc563d168aec3b6f4dfde642ee0843c14cc (diff)
Fix crasher in burnin code.
-rw-r--r--src/emu/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/video.c b/src/emu/video.c
index 9c400875d9c..e691fd0ac71 100644
--- a/src/emu/video.c
+++ b/src/emu/video.c
@@ -2636,8 +2636,8 @@ static void video_update_burnin(running_machine *machine)
int dstheight = state->burnin->height;
int xstep = (srcwidth << 16) / dstwidth;
int ystep = (srcheight << 16) / dstheight;
- int xstart = (rand() % 32767) * xstep / 32767;
- int ystart = (rand() % 32767) * ystep / 32767;
+ int xstart = ((UINT32)rand() % 32767) * xstep / 32767;
+ int ystart = ((UINT32)rand() % 32767) * ystep / 32767;
int srcx, srcy;
int x, y;