Cast to uintptr_t in MIPS jmpbuf-unwind.h.

This commit is contained in:
Joseph Myers 2012-11-21 16:41:57 +00:00
parent 7e1be74125
commit c3151ad100
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2012-11-21 Joseph Myers <joseph@codesourcery.com>
* 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 <joseph@codesourcery.com>

View File

@ -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