summaryrefslogtreecommitdiff
path: root/sgn.c
diff options
context:
space:
mode:
Diffstat (limited to 'sgn.c')
-rw-r--r--sgn.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sgn.c b/sgn.c
index ad4028744..95eeeeac2 100644
--- a/sgn.c
+++ b/sgn.c
@@ -26,12 +26,8 @@ int
mpfr_sgn (mpfr_srcptr a)
{
if (MPFR_UNLIKELY( MPFR_IS_SINGULAR(a) ))
- {
- /* Only infinite is signed */
- if (MPFR_IS_INF(a))
- return MPFR_INT_SIGN(a);
- else
- return 0;
- }
- return MPFR_INT_SIGN(a);
+ /* Only infinite is signed */
+ return MPFR_IS_INF (a) ? MPFR_INT_SIGN (a) : 0;
+ else
+ return MPFR_INT_SIGN (a);
}