From 2da6980eb5098eedbe20badfac3886d6db7ab369 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 7 Aug 2009 16:27:24 -0600 Subject: [PATCH] print intptr_t's as pointers in compareIpToMethodBounds to avoid printf compatibility issues --- src/compile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compile.cpp b/src/compile.cpp index ff6f15a5a6..add06d4845 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -189,8 +189,10 @@ compareIpToMethodBounds(Thread* t, intptr_t ip, object method) intptr_t start = methodCompiled(t, method); if (DebugMethodTree) { - fprintf(stderr, "find 0x%"LX" in (0x%"LX",0x%"LX")\n", ip, start, - start + compiledSize(start)); + fprintf(stderr, "find %p in (%p,%p)\n", + reinterpret_cast(ip), + reinterpret_cast(start), + reinterpret_cast(start + compiledSize(start))); } if (ip < start) {