summaryrefslogtreecommitdiff
path: root/mpz/export.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-06-22 03:49:16 +0200
committerKevin Ryde <user42@zip.com.au>2002-06-22 03:49:16 +0200
commit1f1695433795f0dee34a389a8225b6ac514890bc (patch)
treef80b01ac9046fefc2e0f39ec7ae2bfeefbe4cf51 /mpz/export.c
parente9adcaba499fe9a1272f06b2fed2277c1883d738 (diff)
downloadgmp-1f1695433795f0dee34a389a8225b6ac514890bc.tar.gz
Try an extra cast on the alignment test to see if it makes Cray cc happier.
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 eeb8db57f..d3f001871 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 long) data % sizeof (mp_limb_t);
+ align = ((unsigned long) (char *) data) % sizeof (mp_limb_t);
if (nail == GMP_NAIL_BITS)
{