wbhart/mpir

shifting a negative signed value is undefined

dimpase opened this issue · 1 comments

building with clang points out at this apparent gnu-ism:

bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -D__GMP_WITHIN_GMP -I..   -g -c -o ior.lo ior.c
inp_raw.c:78:30: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
    csize |= (mp_size_t)(-1) << 32;
             ~~~~~~~~~~~~~~~ ^