From c3151ad1004f97b8595449c8ed9af01c5d58906f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 21 Nov 2012 16:41:57 +0000 Subject: [PATCH] Cast to uintptr_t in MIPS jmpbuf-unwind.h. --- ports/ChangeLog.mips | 3 +++ ports/sysdeps/mips/jmpbuf-unwind.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips index 8c84869306..5ef48f4e77 100644 --- a/ports/ChangeLog.mips +++ b/ports/ChangeLog.mips @@ -1,5 +1,8 @@ 2012-11-21 Joseph Myers + * sysdeps/mips/jmpbuf-unwind.h (_jmpbuf_sp): Cast regs[0].__sp to + uintptr_t. + * sysdeps/mips/sotruss-lib.c: New file. 2012-11-20 Joseph Myers diff --git a/ports/sysdeps/mips/jmpbuf-unwind.h b/ports/sysdeps/mips/jmpbuf-unwind.h index ba174d6079..355ca56f78 100644 --- a/ports/sysdeps/mips/jmpbuf-unwind.h +++ b/ports/sysdeps/mips/jmpbuf-unwind.h @@ -33,7 +33,7 @@ static inline uintptr_t __attribute__ ((unused)) _jmpbuf_sp (__jmp_buf regs) { - uintptr_t sp = regs[0].__sp; + uintptr_t sp = (uintptr_t) regs[0].__sp; #ifdef PTR_DEMANGLE PTR_DEMANGLE (sp); #endif