From 0caf3bd18c830bf77167a690ef0814cf538697af Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Sun, 14 Jun 2015 18:59:46 -0700 Subject: [PATCH] Bugfix for mpf.is_regular --- src/util/mpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/mpf.h b/src/util/mpf.h index bac502c58..ecacb3301 100644 --- a/src/util/mpf.h +++ b/src/util/mpf.h @@ -169,7 +169,7 @@ public: bool is_ninf(mpf const & x); bool is_normal(mpf const & x); bool is_denormal(mpf const & x); - bool is_regular(mpf const & x) { return x.sbits == 0 || is_normal(x) || is_denormal(x); } + bool is_regular(mpf const & x) { return x.sbits == 0 || is_zero(x) || is_normal(x) || is_denormal(x); } bool is_int(mpf const & x);