aboutsummaryrefslogtreecommitdiff
path: root/source/cpuexec.h
diff options
context:
space:
mode:
authorJoão Silva2017-01-29 04:55:23 +0000
committerJoão Silva2017-01-29 04:55:23 +0000
commit0e59b999fa976de2d00490f552a1ff0a27d40f63 (patch)
treeadce7b06d1acc25f52c6e10616451bba02f9f7a5 /source/cpuexec.h
parent813fc89d37d1d8c8d2fa090a28f74aa0fdcea5df (diff)
downloadsnesemu-0e59b999fa976de2d00490f552a1ff0a27d40f63.tar.gz
snesemu-0e59b999fa976de2d00490f552a1ff0a27d40f63.tar.bz2
snesemu-0e59b999fa976de2d00490f552a1ff0a27d40f63.zip
Converted most types to stdint-style (fixing a few in the process).
Diffstat (limited to 'source/cpuexec.h')
-rw-r--r--source/cpuexec.h10
1 files changed, 5 insertions, 5 deletions
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;
}