summaryrefslogtreecommitdiff
path: root/mpz/export.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-05-31 10:32:22 +0200
committertege <tege@gmplib.org>2002-05-31 10:32:22 +0200
commitbe8bb32b5b0b92ab909a834c9247a0c80cf902da (patch)
tree5c52459271bfd10f8cfbdb429462186633de989c /mpz/export.c
parent05418fb761e8df8da9af56dee63f28423e620fee (diff)
downloadgmp-be8bb32b5b0b92ab909a834c9247a0c80cf902da.tar.gz
Cast pointer via `unsigned long' when checking
alignment to avoid compiler warnings.
Diffstat (limited to 'mpz/export.c')
-rw-r--r--mpz/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/export.c b/mpz/export.c
index 1b736c77e..eeb8db57f 100644
--- a/mpz/export.c
+++ b/mpz/export.c
@@ -83,7 +83,7 @@ mpz_export (void *data, size_t *countp, int order,
if (endian == 0)
endian = HOST_ENDIAN;
- align = (unsigned) data % sizeof (mp_limb_t);
+ align = (unsigned long) data % sizeof (mp_limb_t);
if (nail == GMP_NAIL_BITS)
{