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/cheats2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cheats2.c') diff --git a/source/cheats2.c b/source/cheats2.c index 4ca6b1d..dd4033f 100644 --- a/source/cheats2.c +++ b/source/cheats2.c @@ -81,7 +81,7 @@ void S9xRemoveCheat(uint32_t which1) { uint32_t address = Cheat.c [which1].address; - int block = (address >> MEMMAP_SHIFT) & MEMMAP_MASK; + int32_t block = (address >> MEMMAP_SHIFT) & MEMMAP_MASK; uint8_t* ptr = Memory.Map [block]; if (ptr >= (uint8_t*) MAP_LAST) @@ -100,7 +100,7 @@ void S9xApplyCheat(uint32_t which1) if (!Cheat.c [which1].saved) Cheat.c [which1].saved_byte = S9xGetByte(address); - int block = (address >> MEMMAP_SHIFT) & MEMMAP_MASK; + int32_t block = (address >> MEMMAP_SHIFT) & MEMMAP_MASK; uint8_t* ptr = Memory.Map [block]; if (ptr >= (uint8_t*) MAP_LAST) -- cgit v1.2.3