From d20bd39a6829b8e56d43a5660d5c05aa7514cb7f Mon Sep 17 00:00:00 2001 From: tege Date: Sat, 11 May 2002 16:24:47 +0200 Subject: Cast pointer via `unsigned long' when checking alignment to avoid compiler warnings. --- mpz/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1