summaryrefslogtreecommitdiff
path: root/gmpxx.h
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2017-06-02 12:18:50 +0200
committerMarc Glisse <marc.glisse@inria.fr>2017-06-02 12:18:50 +0200
commit8ffa5b914983c0b0f4cf5a73b3df9b1b9cb40788 (patch)
treeaf91ff7ff9593a5a39c98a5e8334ad3b277a0dc4 /gmpxx.h
parent565bd97f5d91a2296939479f10e12ea7b1167ec7 (diff)
downloadgmp-8ffa5b914983c0b0f4cf5a73b3df9b1b9cb40788.tar.gz
Use mpf_sgn to access _mp_size in gmpxx.h.
This helps mpf2mpfr.h without changing the generated code (at least with gcc).
Diffstat (limited to 'gmpxx.h')
-rw-r--r--gmpxx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmpxx.h b/gmpxx.h
index 389c0d424..42d331658 100644
--- a/gmpxx.h
+++ b/gmpxx.h
@@ -2113,7 +2113,7 @@ public:
// bool fits_ldouble_p() const { return mpf_fits_ldouble_p(mp); }
#if __GMPXX_USE_CXX11
- explicit operator bool() const { return mp->_mp_size != 0; }
+ explicit operator bool() const { return mpf_sgn(mp) != 0; }
#endif
// compound assignments