Fixed 64-bit MSVC compile.

This commit is contained in:
Curt Coder 2009-09-06 13:33:41 +00:00
parent a081ace60b
commit 778f268c74
2 changed files with 5 additions and 5 deletions

View File

@ -159,9 +159,9 @@ static void srtc_mmio_write(running_machine *machine, UINT16 addr, UINT8 data)
if(snes_rtc.rtc_index == 12)
{
// Day of week is automatically calculated and written
UINT8 day = snes_rtc.rtc_ram[6] + snes_rtc.rtc_ram[7] * 10;
UINT8 month = snes_rtc.rtc_ram[8];
UINT8 year = snes_rtc.rtc_ram[9] + snes_rtc.rtc_ram[10] * 10 + snes_rtc.rtc_ram[11] * 100;
UINT32 day = snes_rtc.rtc_ram[6] + snes_rtc.rtc_ram[7] * 10;
UINT32 month = snes_rtc.rtc_ram[8];
UINT32 year = snes_rtc.rtc_ram[9] + snes_rtc.rtc_ram[10] * 10 + snes_rtc.rtc_ram[11] * 100;
year += 1000;
snes_rtc.rtc_ram[snes_rtc.rtc_index++] = srtc_weekday(year, month, day);

View File

@ -1,4 +1,4 @@
static UINT8 sdd1_read(running_machine* machine, UINT16 addr);
static UINT8 sdd1_read(running_machine* machine, UINT32 addr);
typedef struct //Input Manager
{
@ -629,7 +629,7 @@ static void sdd1_mmio_write(const address_space *space, UINT32 addr, UINT8 data)
}
}
static UINT8 sdd1_read(running_machine* machine, UINT16 addr)
static UINT8 sdd1_read(running_machine* machine, UINT32 addr)
{
//printf( "sdd1.read(%06x)\n", addr );
if(snes_sdd1.sdd1_enable & snes_sdd1.xfer_enable)