From 1d7bcffc21eee1d9faf29e245c69eeb652f2c61f Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Sat, 26 Mar 2011 20:23:15 -0700 Subject: [PATCH] [INFER] Fix Linux build. --- js/src/methodjit/Retcon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/methodjit/Retcon.cpp b/js/src/methodjit/Retcon.cpp index 98579ca9e05..4b96f77c9e2 100644 --- a/js/src/methodjit/Retcon.cpp +++ b/js/src/methodjit/Retcon.cpp @@ -315,7 +315,7 @@ Recompiler::expandInlineFrames(JSContext *cx, JSStackFrame *fp, mjit::CallSite * if (next) { next->resetInlinePrev(innerfp, innerpc); void **addr = next->addressOfNativeReturnAddress(); - if (*addr != NULL && *addr != JaegerTrampolineReturn) { + if (*addr != NULL && *addr != (void *) JaegerTrampolineReturn) { PatchableAddress patch; patch.location = addr; patch.callSite.initialize(0, uint32(-1), inlined->pcOffset, CallSite::NCODE_RETURN_ID); @@ -461,7 +461,7 @@ Recompiler::recompile() if (!*addr) { // next is an interpreted frame. - } else if (*addr == JaegerTrampolineReturn) { + } else if (*addr == (void *) JaegerTrampolineReturn) { // next entered from the interpreter. } else if (fp->isConstructing()) { JS_ASSERT(script->jitCtor && script->jitCtor->isValidCode(*addr));