From e9493b78df620f9b896d77b69e6c0929ceaaba5d Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Fri, 29 Apr 2005 18:39:28 +0000 Subject: [PATCH] typo in relocation code --- native/relocate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)