about summary refs log tree commit diff
path: root/sysdeps/s390/jmpbuf-unwind.h
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2012-12-08 13:03:24 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2012-12-08 13:03:24 +0530
commit56e7d3ad5c2f369349bf7def0d8875a50e2d275b (patch)
tree0e34ff4e97b380d098c0cf65b083b1147c1f9a00 /sysdeps/s390/jmpbuf-unwind.h
parent76f2d2ea7b1ecaeab5f91fe7c560c7c3f8ad5c8d (diff)
downloadglibc-56e7d3ad5c2f369349bf7def0d8875a50e2d275b.tar.gz
glibc-56e7d3ad5c2f369349bf7def0d8875a50e2d275b.tar.xz
glibc-56e7d3ad5c2f369349bf7def0d8875a50e2d275b.zip
Fix some build warnings on s390x
Diffstat (limited to 'sysdeps/s390/jmpbuf-unwind.h')
-rw-r--r--sysdeps/s390/jmpbuf-unwind.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/s390/jmpbuf-unwind.h b/sysdeps/s390/jmpbuf-unwind.h
index 8ae35c1b9a..7da35398c9 100644
--- a/sysdeps/s390/jmpbuf-unwind.h
+++ b/sysdeps/s390/jmpbuf-unwind.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
 
@@ -40,11 +40,11 @@
 static inline uintptr_t __attribute__ ((unused))
 _jmpbuf_sp (__jmp_buf regs)
 {
-  uintptr_t sp = regs[0].__gregs[__JB_GPR15];
+  void *sp = (void *) (uintptr_t) regs[0].__gregs[__JB_GPR15];
 #ifdef PTR_DEMANGLE
   PTR_DEMANGLE (sp);
 #endif
-  return sp;
+  return (uintptr_t) sp;
 }
 
 #define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \