summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-05-11 16:24:47 +0200
committertege <tege@gmplib.org>2002-05-11 16:24:47 +0200
commitd20bd39a6829b8e56d43a5660d5c05aa7514cb7f (patch)
tree9a051a823011328485754daac6d2c91f94985b07
parent10a832af192f93cdd11fc282e0fbfdb1e6de4450 (diff)
downloadgmp-d20bd39a6829b8e56d43a5660d5c05aa7514cb7f.tar.gz
Cast pointer via `unsigned long' when checking alignment to avoid
compiler warnings.
-rw-r--r--mpz/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/import.c b/mpz/import.c
index becb9fd6e..4250890a7 100644
--- a/mpz/import.c
+++ b/mpz/import.c
@@ -58,7 +58,7 @@ mpz_import (mpz_ptr z, size_t count, int order,
mask out the nail bits in the input data. */
if (nail == 0 && GMP_NAIL_BITS == 0)
{
- unsigned align = (unsigned) data % sizeof (mp_limb_t);
+ unsigned align = (unsigned long) data % sizeof (mp_limb_t);
if (order == -1
&& size == sizeof (mp_limb_t)