diff options
author | tege <tege@gmplib.org> | 2002-04-20 12:15:45 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2002-04-20 12:15:45 +0200 |
commit | 145ab235c286e4cacc64909886cbec3b217ce13b (patch) | |
tree | 6211f34ba25fcce0f8d1bcae3269c7a5a7b8d0a8 /mpz/get_si.c | |
parent | 735ac1e187b566e75ff51f61b9e56565946ae010 (diff) | |
download | gmp-145ab235c286e4cacc64909886cbec3b217ce13b.tar.gz |
Misc nailify changes to shut up compiler warnings.
Diffstat (limited to 'mpz/get_si.c')
-rw-r--r-- | mpz/get_si.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mpz/get_si.c b/mpz/get_si.c index 94e6b8865..05538a97a 100644 --- a/mpz/get_si.c +++ b/mpz/get_si.c @@ -29,12 +29,14 @@ mpz_get_si (mpz_srcptr z) mp_size_t size = z->_mp_size; mp_limb_t low_limb = zp[0]; +#if GMP_NAIL_BITS != 0 if (ULONG_MAX > GMP_NUMB_MAX != 0 && ABS (size) >= 2) { /* happens for nails, but not if LONG_LONG_LIMB */ /* assume two limbs are enough to fill an ulong */ low_limb += zp[1] << GMP_NUMB_BITS; } +#endif if (size > 0) return (long) low_limb & LONG_MAX; |