summaryrefslogtreecommitdiff
path: root/mpz/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpz/import.c')
-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)