From bd26301df3d2f13f07138fd3bc41592d15d69c29 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Thu, 20 Oct 2011 10:41:37 +0000 Subject: [PATCH] Fix a compile warning on {ppc32,ppc64}-linux. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12174 --- coregrind/m_debuginfo/d3basics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_debuginfo/d3basics.c b/coregrind/m_debuginfo/d3basics.c index 1a31f60cc3..125c5533ea 100644 --- a/coregrind/m_debuginfo/d3basics.c +++ b/coregrind/m_debuginfo/d3basics.c @@ -853,7 +853,7 @@ GXResult ML_(evaluate_Dwarf3_Expr) ( UChar* expr, UWord exprszB, "DW_OP_call_frame_cfa but no reg info"); #if defined(VGP_ppc32_linux) || defined(VGP_ppc64_linux) /* Valgrind on ppc32/ppc64 currently doesn't use unwind info. */ - uw1 = ML_(read_Addr)(regs->sp); + uw1 = ML_(read_Addr)((UChar*)regs->sp); #else uw1 = ML_(get_CFA)(regs->ip, regs->sp, regs->fp, 0, ~(UWord) 0); #endif -- 2.47.2