From 22971c35e2de34ec3e1b02e9bceebcba2ead7bfe Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 23 Jan 2015 14:48:40 -0800 Subject: Use uint64_t and (uint64_t) 1 for 64-bit int This patch replaces unsigned long int and 1UL with uint64_t and (uint64_t) 1 to support ILP32 targets like x32. [BZ #17870] * nptl/sem_post.c (__new_sem_post): Replace unsigned long int with uint64_t. * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with (uint64_t) 1. (__new_sem_wait_slow): Replace unsigned long int with uint64_t. Replace 1UL with (uint64_t) 1. * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long int with uint64_t. --- sysdeps/nptl/internaltypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/nptl') diff --git a/sysdeps/nptl/internaltypes.h b/sysdeps/nptl/internaltypes.h index 7c0d240..8f5cfa4 100644 --- a/sysdeps/nptl/internaltypes.h +++ b/sysdeps/nptl/internaltypes.h @@ -155,7 +155,7 @@ struct new_sem # endif # define SEM_NWAITERS_SHIFT 32 # define SEM_VALUE_MASK (~(unsigned int)0) - unsigned long int data; + uint64_t data; int private; int pad; #else -- cgit v1.1