diff options
Diffstat (limited to 'gmp-impl.h')
-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) |