summaryrefslogtreecommitdiff
path: root/mpz/iset_si.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpz/iset_si.c')
-rw-r--r--mpz/iset_si.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/iset_si.c b/mpz/iset_si.c
index af51f0578..e24877eb1 100644
--- a/mpz/iset_si.c
+++ b/mpz/iset_si.c
@@ -1,7 +1,7 @@
/* mpz_init_set_si(val) -- Make a new multiple precision number with
value val.
-Copyright (C) 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright (C) 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -41,7 +41,7 @@ mpz_init_set_si (x, val)
}
else if (val < 0)
{
- x->_mp_d[0] = -val;
+ x->_mp_d[0] = (unsigned long) -val;
x->_mp_size = -1;
}
else