diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2013-02-01 19:11:26 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2013-02-01 19:11:26 +0100 |
commit | d6cf723e249f757432b5a6d5700d8fcc4ea66cda (patch) | |
tree | 540fcdd7f42e317a2dae0c4765a5f8f959b7a4a9 | |
parent | ff2e4af6ace241be9edd587fa22f3add4ce305c5 (diff) | |
download | gmp-d6cf723e249f757432b5a6d5700d8fcc4ea66cda.tar.gz |
(DIGITS_IN_BASE_PER_LIMB): Add a cast.
(LIMBS_PER_DIGIT_IN_BASE): Likewise.
-rw-r--r-- | gmp-impl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gmp-impl.h b/gmp-impl.h index 405d0fda7..24cfc0631 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -4,7 +4,7 @@ BE SUBJECT TO INCOMPATIBLE CHANGES IN FUTURE GNU MP RELEASES. Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, -2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software +2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -4271,7 +4271,8 @@ __GMP_DECLSPEC extern mp_size_t __gmp_default_fp_limb_precision; #define DIGITS_IN_BASE_PER_LIMB(res, nlimbs, b) \ do { \ mp_limb_t _ph, _pl; \ - umul_ppmm (_ph, _pl, mp_bases[b].logb2, GMP_NUMB_BITS * (nlimbs)); \ + umul_ppmm (_ph, _pl, \ + mp_bases[b].logb2, GMP_NUMB_BITS * (mp_limb_t) (nlimbs));\ res = _ph; \ } while (0) @@ -4280,7 +4281,7 @@ __GMP_DECLSPEC extern mp_size_t __gmp_default_fp_limb_precision; #define LIMBS_PER_DIGIT_IN_BASE(res, ndigits, b) \ do { \ mp_limb_t _ph, _dummy; \ - umul_ppmm (_ph, _dummy, mp_bases[b].log2b, (ndigits)); \ + umul_ppmm (_ph, _dummy, mp_bases[b].log2b, (mp_limb_t) (ndigits)); \ res = 8 * _ph / GMP_NUMB_BITS + 2; \ } while (0) |