diff options
author | Twinaphex | 2017-01-29 06:00:06 +0100 |
---|---|---|
committer | GitHub | 2017-01-29 06:00:06 +0100 |
commit | b9ad67f2d3f5bc1f7ebaad2eeb225d669aa7f58b (patch) | |
tree | adce7b06d1acc25f52c6e10616451bba02f9f7a5 /source/cheats2.c | |
parent | 813fc89d37d1d8c8d2fa090a28f74aa0fdcea5df (diff) | |
parent | 0e59b999fa976de2d00490f552a1ff0a27d40f63 (diff) | |
download | snesemu-b9ad67f2d3f5bc1f7ebaad2eeb225d669aa7f58b.tar.gz snesemu-b9ad67f2d3f5bc1f7ebaad2eeb225d669aa7f58b.tar.bz2 snesemu-b9ad67f2d3f5bc1f7ebaad2eeb225d669aa7f58b.zip |
Merge pull request #30 from jamsilva/master
Converted most types to stdint-style (fixing a few in the process).
Diffstat (limited to 'source/cheats2.c')
-rw-r--r-- | source/cheats2.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |