summaryrefslogtreecommitdiff
path: root/mpfr.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mpfr.c b/mpfr.c
index 55a289fd..829f1f34 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -488,7 +488,7 @@ mpg_cmp_as_numbers(const NODE *t1, const NODE *t2, scalar_cmp_t comparison_type)
bool t1_nan = mpfr_nan_p(t1->mpg_numbr);
bool t2_nan = mpfr_nan_p(t2->mpg_numbr);
- int ret;
+ bool ret = false;
// MPFR is different than native doubles...
if (t1_nan || t2_nan)
@@ -515,6 +515,9 @@ mpg_cmp_as_numbers(const NODE *t1, const NODE *t2, scalar_cmp_t comparison_type)
case SCALAR_GE:
ret = (di >= 0);
break;
+ default:
+ cant_happen();
+ break;
}
return ret;