3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

Bugfix for fp.isSubnormal.

Fixes #10
This commit is contained in:
Christoph M. Wintersteiger 2015-03-29 13:31:44 +01:00
parent 4bfe20647b
commit 690eb8eaca
2 changed files with 8 additions and 3 deletions

View file

@ -1350,7 +1350,7 @@ bool mpf_manager::is_ninf(mpf const & x) {
}
bool mpf_manager::is_normal(mpf const & x) {
return !has_bot_exp(x) && !has_top_exp(x);
return !is_zero(x) && has_bot_exp(x);
}
bool mpf_manager::is_denormal(mpf const & x) {