From 5f0436a948fef5d66e1d17dcf7f96a03efab00c7 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Tue, 14 Jul 2009 23:14:45 +0000 Subject: [PATCH] Fix crasher in burnin code. --- src/emu/video.c | 4 ++-- 1 file 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;