From 77e927affd576fcbb751144f60b098b7f0427045 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Fri, 16 Mar 2012 21:02:54 -0700 Subject: Fix warnings when uintptr_t is larger than int. * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid warnings. --- sysdeps/unix/sysv/linux/shmat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c index dd75491ce4..d01bb1bdb7 100644 --- a/sysdeps/unix/sysv/linux/shmat.c +++ b/sysdeps/unix/sysv/linux/shmat.c @@ -55,7 +55,7 @@ shmat (shmid, shmaddr, shmflg) if (INTERNAL_SYSCALL_ERROR_P (resultvar, err)) { __set_errno (INTERNAL_SYSCALL_ERRNO (resultvar, err)); - return (void *) -1; + return (void *) -1l; } return BOUNDED_N (raddr, length); -- cgit v1.2.3