From c9c1a2d02cf344697c08075a44c170f771ebc6b2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 19 Dec 2014 05:28:06 -0800 Subject: Replace 1L with (mp_limb_t) 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X86-64 and x32 use sysdeps/i386/ldbl2mpn.c. res_ptr is a pointer to mp_limb_t, which is long for i386 and x86-64 and long long for x32. On x32, I got ../sysdeps/x86_64/../i386/ldbl2mpn.c: In function ‘__mpn_extract_long_double’: ../sysdeps/x86_64/../i386/ldbl2mpn.c:72:4: error: left shift count >= width of type [-Werror] res_ptr[N - 1] &= ~(1L << ((LDBL_MANT_DIG - 1) % BITS_PER_MP_LIMB)); ^ cc1: all warnings being treated as errors This patch replaces 1L with (mp_limb_t) 1. Verified on x32, i686 and x86-64 with GCC 4.8.3. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 799b21a59d..eda51f8e6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-12-19 H.J. Lu + + * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace + 1L with (mp_limb_t) 1. + 2014-12-17 Roland McGrath * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ... -- cgit 1.4.1