aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/unix/sysv/linux/ia64
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-03-10 22:53:15 +0000
committerMike Frysinger <vapier@gentoo.org>2013-03-10 22:18:28 -0400
commit3c2ef5414fa95c0021b740f090770e77ef05af25 (patch)
treee8e50df13ab8bb5696a8a07af6b9def78258dd77 /ports/sysdeps/unix/sysv/linux/ia64
parent8233957f54a59063c0e5e8a27d82a182fa0d78ab (diff)
downloadglibc-3c2ef5414fa95c0021b740f090770e77ef05af25.tar
glibc-3c2ef5414fa95c0021b740f090770e77ef05af25.tar.gz
glibc-3c2ef5414fa95c0021b740f090770e77ef05af25.tar.bz2
glibc-3c2ef5414fa95c0021b740f090770e77ef05af25.zip
ia64: makecontext: fix signed warnings
The ia64_rse_is_rnat_slot func expects an unsigned pointer, but we're passing in a signed pointer. The signness doesn't matter here, so convert it to unsigned. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ports/sysdeps/unix/sysv/linux/ia64')
-rw-r--r--ports/sysdeps/unix/sysv/linux/ia64/makecontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/makecontext.c b/ports/sysdeps/unix/sysv/linux/ia64/makecontext.c
index 79fa05af62..a512c94097 100644
--- a/ports/sysdeps/unix/sysv/linux/ia64/makecontext.c
+++ b/ports/sysdeps/unix/sysv/linux/ia64/makecontext.c
@@ -48,7 +48,7 @@ __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...)
extern void __start_context (ucontext_t *link, long gp, ...);
unsigned long stack_start, stack_end;
va_list ap;
- long *rbs;
+ unsigned long *rbs;
int i;
stack_start = (long) sc->sc_stack.ss_sp;
@@ -72,7 +72,7 @@ makecontext: does not know how to handle more than 8 arguments\n"));
/* set up the call frame: */
sc->sc_ar_pfs = ((sc->sc_ar_pfs & ~0x3fffffffffUL)
| (argc + 2) | ((argc + 2) << 7));
- rbs = (long *) stack_start;
+ rbs = (unsigned long *) stack_start;
PUSH((long) ucp->uc_link);
PUSH(((struct fdesc *) &__start_context)->gp);
va_start (ap, argc);