From 1203585fa2025c55b57851b25b28babb898abae7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 30 Apr 2017 03:28:37 +0200 Subject: [PATCH] Buildfix --- src/boards/unrom512.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boards/unrom512.c b/src/boards/unrom512.c index 25efab3..45d0e05 100644 --- a/src/boards/unrom512.c +++ b/src/boards/unrom512.c @@ -193,7 +193,8 @@ static void UNROM512LSync() { } else if (latche==0x10) { - for(uint32 i=0;i<(ROM_size*4);i++) + uint32 i; + for(i=0;i<(ROM_size*4);i++) inc_flash_write_count(i>>2,i<<12); memset(flashdata,0xFF,ROM_size*0x4000); //Erasing the rom chip as instructed. Crash rate calulated to be 99.9% :) } @@ -261,4 +262,4 @@ void UNROM512_Init(CartInfo *info) { } AddExState(&latche, 1, 0, "LATC"); AddExState(&bus_conflict, 1, 0, "BUSC"); -} \ No newline at end of file +}