From d81fdf15fe644f83a644f4c66f20b877486d40e1 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 23 Oct 2006 02:12:27 +0000 Subject: Added a comment about a warning (this confused a user). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/2.2@4156 280ebfd0-de03-0410-8827-d642c229c3f4 --- set_uj.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/set_uj.c b/set_uj.c index d79d31db6..9912d6fad 100644 --- a/set_uj.c +++ b/set_uj.c @@ -75,6 +75,10 @@ mpfr_set_uj_2exp (mpfr_t x, uintmax_t j, intmax_t e, mp_rnd_t rnd) limb = yp[0] = j; else { + /* Note: Possible warning "right shift count >= width of type" on + 64-bit machines with gcc. This is not a bug, as the right shift + is never performed in this case. FIXME: Avoid this warning, if + possible (in a clean way). */ for (i = 0; i < k; i++, j >>= BITS_PER_MP_LIMB) yp[i] = j; /* Only the low bits are copied */ -- cgit v1.2.1