Replace 1L with (mp_limb_t) 1
commitc9c1a2d02cf344697c08075a44c170f771ebc6b2
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Dec 2014 13:28:06 +0000 (19 05:28 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Dec 2014 13:32:39 +0000 (19 05:32 -0800)
tree629ce20837bf562e981e207b3ff458ea1683eb39
parente54db0ea6a49affac43fa305fd134f3020c41382
Replace 1L with (mp_limb_t) 1

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
sysdeps/i386/ldbl2mpn.c