From: Stefan Ring Date: Wed, 18 Jun 2008 19:47:48 +0000 (+0200) Subject: * src/vm/jit/x86_64/patcher.c (patcher_putfieldconst): Fixed. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=98c15c4c17b0cf8ada4b7266b824e1b8e73d8a64;p=cacao.git * src/vm/jit/x86_64/patcher.c (patcher_putfieldconst): Fixed. --- diff --git a/src/vm/jit/x86_64/patcher.c b/src/vm/jit/x86_64/patcher.c index 0a69cfd97..be30afa37 100644 --- a/src/vm/jit/x86_64/patcher.c +++ b/src/vm/jit/x86_64/patcher.c @@ -325,9 +325,9 @@ bool patcher_putfieldconst(patchref_t *pr) if (IS_2_WORD_TYPE(fi->type) || IS_ADR_TYPE(fi->type)) { /* handle special case when the base register is %r12 */ - byte = *(ra + 2); + byte = *(ra + 12); - if (byte == 0x84) { + if (byte == 0x94) { *((uint32_t *) (ra + 14)) = fi->offset; } else {