summaryrefslogtreecommitdiff
path: root/sin.c
diff options
context:
space:
mode:
Diffstat (limited to 'sin.c')
-rw-r--r--sin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sin.c b/sin.c
index 3a88346c7..d4d830e6f 100644
--- a/sin.c
+++ b/sin.c
@@ -34,7 +34,10 @@ mpfr_sin_sign (mpfr_srcptr x)
mpfr_srcptr y;
K = MPFR_GET_EXP(x);
- m = (K < 0) ? 0 : K;
+
+ if (K < 0) /* Trivial case if x < 1 */
+ return MPFR_SIGN (x);
+ m = K;
mpfr_init2 (c, 2);
mpfr_init2 (k, 2);