summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-10-23 02:12:27 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-10-23 02:12:27 +0000
commitd81fdf15fe644f83a644f4c66f20b877486d40e1 (patch)
treeb797c76731987e7ae705b5713b3bf272878931a2
parent3c43bb30835ae8b243f8c95f19a0e23529332aa1 (diff)
downloadmpfr-d81fdf15fe644f83a644f4c66f20b877486d40e1.tar.gz
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
-rw-r--r--set_uj.c4
1 files changed, 4 insertions, 0 deletions
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 */