summaryrefslogtreecommitdiff
path: root/mpz/set_si.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-04-21 12:53:23 +0200
committertege <tege@gmplib.org>2002-04-21 12:53:23 +0200
commitae28f596f853abad0ff8e25daa947a0ed9b95ba3 (patch)
tree5fc9f8bfea21a099f96ccd0cc32f0b1576e70ee2 /mpz/set_si.c
parente3ba8ed16e2c3e760cfe3a67ae9ec68602b644ee (diff)
downloadgmp-ae28f596f853abad0ff8e25daa947a0ed9b95ba3.tar.gz
Add cast to support LONG_LONG_LIMB.
Diffstat (limited to 'mpz/set_si.c')
-rw-r--r--mpz/set_si.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/set_si.c b/mpz/set_si.c
index d41e5eece..8854673b8 100644
--- a/mpz/set_si.c
+++ b/mpz/set_si.c
@@ -29,7 +29,7 @@ mpz_set_si (mpz_ptr dest, signed long int val)
mp_size_t size;
mp_limb_t vl;
- vl = val >= 0 ? val : -val;
+ vl = (mp_limb_t) (unsigned long int) (val >= 0 ? val : -val);
dest->_mp_d[0] = vl & GMP_NUMB_MASK;
size = vl != 0;