diff --git a/native/relocate.h b/native/relocate.h index e661a1c94c..2f0998afcf 100644 --- a/native/relocate.h +++ b/native/relocate.h @@ -45,7 +45,7 @@ void relocate_code(); given address */ INLINE CELL reloc_get_16_16(CELL* cell) { - return ((*(cell - 1) & 0xffff) << 16) | (*cell & 0xffff); + return ((*cell & 0xffff) << 16) | (*(cell + 1) & 0xffff); } INLINE void reloc_set_16_16(CELL* cell, CELL value)