From bedf4ade35ff8e406d8fc0247d42c0262d54bb6e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 10 Dec 2011 07:04:17 +0000 Subject: [PATCH] Fix for softlist compile (no whatsnew) --- src/emu/softlist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/emu/softlist.c b/src/emu/softlist.c index 91ea5208176..b7b8d4d756e 100644 --- a/src/emu/softlist.c +++ b/src/emu/softlist.c @@ -762,8 +762,7 @@ static void start_handler(void *data, const char *tagname, const char **attribut else if ( str_loadflag && !strcmp(str_loadflag, "fill") ) { /* Handle 'fill' loadflag */ - UINT8 val = strtol( str_value, NULL, 0 ) & 0xff; - add_rom_entry( swlist, NULL, (const char*)val, offset, length, ROMENTRYTYPE_FILL ); + add_rom_entry( swlist, NULL, (const char*)(FPTR)(strtol( str_value, NULL, 0 ) & 0xff), offset, length, ROMENTRYTYPE_FILL ); } else {