about summary refs log tree commit diff
path: root/include/sys/param.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-12-19 05:28:06 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-12-19 05:32:39 -0800
commitc9c1a2d02cf344697c08075a44c170f771ebc6b2 (patch)
tree629ce20837bf562e981e207b3ff458ea1683eb39 /include/sys/param.h
parente54db0ea6a49affac43fa305fd134f3020c41382 (diff)
downloadglibc-c9c1a2d02cf344697c08075a44c170f771ebc6b2.tar.gz
glibc-c9c1a2d02cf344697c08075a44c170f771ebc6b2.tar.xz
glibc-c9c1a2d02cf344697c08075a44c170f771ebc6b2.zip
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.
Diffstat (limited to 'include/sys/param.h')
0 files changed, 0 insertions, 0 deletions