mpir
mpir copied to clipboard
shifting a negative signed value is undefined
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;
~~~~~~~~~~~~~~~ ^
Yeah I saw that. I guess that should be fixed. Perhaps some of the tests that input values from strings rely on that.
On 23 November 2017 at 10:55, Dima Pasechnik [email protected] wrote:
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; ~~~~~~~~~~~~~~~ ^
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wbhart/mpir/issues/235, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOzpkA8E-5HzSiXAGn95X_1JtF-XYhpks5s5UD-gaJpZM4QofpH .