diff options
| author | 2009-09-06 13:33:41 +0000 | |
|---|---|---|
| committer | 2009-09-06 13:33:41 +0000 | |
| commit | 778f268c749d331af42f02a2be011004771665d4 (patch) | |
| tree | 4a1b9f31b9bf2f53ac5bcad6c69f6889db5b3233 /src | |
| parent | a081ace60ba3a1a51422728be7617b447e2001a0 (diff) | |
Fixed 64-bit MSVC compile.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mame/machine/snesrtc.c | 6 | ||||
| -rw-r--r-- | src/mame/machine/snessdd1.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/machine/snesrtc.c b/src/mame/machine/snesrtc.c index 366ba57dbf8..5425fa56117 100644 --- a/src/mame/machine/snesrtc.c +++ b/src/mame/machine/snesrtc.c @@ -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); diff --git a/src/mame/machine/snessdd1.c b/src/mame/machine/snessdd1.c index db873d47a76..992f7c4ccb7 100644 --- a/src/mame/machine/snessdd1.c +++ b/src/mame/machine/snessdd1.c @@ -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) |
