summaryrefslogtreecommitdiff
path: root/sysdeps/sh/jmpbuf-unwind.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sh/jmpbuf-unwind.h')
-rw-r--r--sysdeps/sh/jmpbuf-unwind.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/sh/jmpbuf-unwind.h b/sysdeps/sh/jmpbuf-unwind.h
index 99adec3950..43b1e9ceab 100644
--- a/sysdeps/sh/jmpbuf-unwind.h
+++ b/sysdeps/sh/jmpbuf-unwind.h
@@ -32,11 +32,11 @@
static inline uintptr_t __attribute__ ((unused))
_jmpbuf_sp (__jmp_buf regs)
{
- uintptr_t sp = regs[0].__regs[7];
+ void *sp = (void *) regs[0].__regs[7];
#ifdef PTR_DEMANGLE
PTR_DEMANGLE (sp);
#endif
- return sp;
+ return (uintptr_t) sp;
}
#define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \