From 0e59b999fa976de2d00490f552a1ff0a27d40f63 Mon Sep 17 00:00:00 2001 From: João Silva Date: Sun, 29 Jan 2017 04:55:23 +0000 Subject: Converted most types to stdint-style (fixing a few in the process). --- source/cpuexec.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/cpuexec.h') diff --git a/source/cpuexec.h b/source/cpuexec.h index 5ecce18..c4342be 100644 --- a/source/cpuexec.h +++ b/source/cpuexec.h @@ -102,7 +102,7 @@ static inline void S9xFixCycles() static inline void S9xReschedule() { uint8_t which; - long max; + int32_t max; if (CPU.WhichEvent == HBLANK_START_EVENT || CPU.WhichEvent == HTIMER_AFTER_EVENT) @@ -117,12 +117,12 @@ static inline void S9xReschedule() } if (PPU.HTimerEnabled && - (long) PPU.HTimerPosition < max && - (long) PPU.HTimerPosition > CPU.NextEvent && + (int32_t) PPU.HTimerPosition < max && + (int32_t) PPU.HTimerPosition > CPU.NextEvent && (!PPU.VTimerEnabled || - (PPU.VTimerEnabled && CPU.V_Counter == PPU.IRQVBeamPos))) + (PPU.VTimerEnabled && CPU.V_Counter == PPU.IRQVBeamPos))) { - which = (long) PPU.HTimerPosition < Settings.HBlankStart ? + which = (int32_t) PPU.HTimerPosition < Settings.HBlankStart ? HTIMER_BEFORE_EVENT : HTIMER_AFTER_EVENT; max = PPU.HTimerPosition; } -- cgit v1.2.3