diff --git a/src/arm/common.h b/src/arm/common.h index db2fb16e2..1a25bc76f 100644 --- a/src/arm/common.h +++ b/src/arm/common.h @@ -23,7 +23,7 @@ } #define LOAD_16(DEST, ADDR, ARR) { \ - uint16_t _tmp = (ADDR); \ + uint32_t _tmp = (ADDR); \ asm("lhbrx %0, %1, %2" : "=r"(DEST) : "r"(_tmp), "p"(ARR)); \ } @@ -33,7 +33,7 @@ } #define STORE_16(SRC, ADDR, ARR) { \ - uint16_t _tmp = (ADDR); \ + uint32_t _tmp = (ADDR); \ asm("sthbrx %0, %1, %2" : : "r"(SRC), "r"(_tmp), "p"(ARR)); \ } #else