summaryrefslogtreecommitdiff
path: root/mpf
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2018-05-06 19:10:34 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2018-05-06 19:10:34 +0200
commit3b890ede1b2cb78aa4e0ce3b420789ccc5dcacee (patch)
treeb352e5a35603b419fc354a1bac585aa1e49fbc51 /mpf
parentfe147d8a90909900ba81b339884a33955dc24cab (diff)
downloadgmp-3b890ede1b2cb78aa4e0ce3b420789ccc5dcacee.tar.gz
Use NEG_CAST
Diffstat (limited to 'mpf')
-rw-r--r--mpf/fits_s.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpf/fits_s.h b/mpf/fits_s.h
index f0d6f9ee7..80e74befd 100644
--- a/mpf/fits_s.h
+++ b/mpf/fits_s.h
@@ -67,5 +67,5 @@ FUNCTION (mpf_srcptr f) __GMP_NOTHROW
else
return 0;
- return fl <= (fs >= 0 ? (mp_limb_t) MAXIMUM : - (mp_limb_t) MINIMUM);
+ return fl <= (fs >= 0 ? (mp_limb_t) MAXIMUM : NEG_CAST (mp_limb_t, MINIMUM));
}