mirror of
https://github.com/libretro/smsplus-gx.git
synced 2024-11-26 18:40:28 +00:00
Fix out-of-bounds access
This commit is contained in:
parent
20c35f0188
commit
6fb05a6998
@ -573,7 +573,7 @@ INLINE uint8_t rm(uint32_t addr)
|
||||
***************************************************************/
|
||||
#define rm16(addr, r) \
|
||||
r.b.l = rm(addr); \
|
||||
r.b.h = rm((addr+1));
|
||||
r.b.h = rm((addr+1) & 0xffff);
|
||||
|
||||
/***************************************************************
|
||||
* Write a byte to given memory location
|
||||
|
Loading…
Reference in New Issue
Block a user