diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-06-22 03:49:16 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-06-22 03:49:16 +0200 |
commit | 1f1695433795f0dee34a389a8225b6ac514890bc (patch) | |
tree | f80b01ac9046fefc2e0f39ec7ae2bfeefbe4cf51 /mpz/export.c | |
parent | e9adcaba499fe9a1272f06b2fed2277c1883d738 (diff) | |
download | gmp-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.c | 2 |
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) { |