all repos — mgba @ ccf2a781aaa6140e8b8d4b34ec198d345059edb2

mGBA Game Boy Advance Emulator

All: Const-correctness for PPC
Jeffrey Pfau jeffrey@endrift.com
Wed, 14 Oct 2015 22:00:36 -0700
commit

ccf2a781aaa6140e8b8d4b34ec198d345059edb2

parent

5d6802d413480d2ab5d3f1d448721473534c4561

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/util/common.hsrc/util/common.h

@@ -48,13 +48,13 @@

#if defined(__PPC__) || defined(__POWERPC__) #define LOAD_32LE(DEST, ADDR, ARR) { \ uint32_t _addr = (ADDR); \ - void* _ptr = (ARR); \ + const void* _ptr = (ARR); \ __asm__("lwbrx %0, %1, %2" : "=r"(DEST) : "b"(_ptr), "r"(_addr)); \ } #define LOAD_16LE(DEST, ADDR, ARR) { \ uint32_t _addr = (ADDR); \ - void* _ptr = (ARR); \ + const void* _ptr = (ARR); \ __asm__("lhbrx %0, %1, %2" : "=r"(DEST) : "b"(_ptr), "r"(_addr)); \ }