about summary refs log tree commit diff
path: root/sysdeps/microblaze
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/microblaze')
-rw-r--r--sysdeps/microblaze/jmpbuf-unwind.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/microblaze/jmpbuf-unwind.h b/sysdeps/microblaze/jmpbuf-unwind.h
index 000390ce5c..de96ee2308 100644
--- a/sysdeps/microblaze/jmpbuf-unwind.h
+++ b/sysdeps/microblaze/jmpbuf-unwind.h
@@ -32,11 +32,11 @@
 static inline uintptr_t __attribute__ ((unused))
 _jmpbuf_sp (__jmp_buf regs)
 {
-  uintptr_t sp = regs[0].__sp;
+  void *sp = (void *) regs[0].__sp;
 #ifdef PTR_DEMANGLE
   PTR_DEMANGLE (sp);
 #endif
-  return sp;
+  return (uintptr_t) sp;
 }
 
 #define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \