diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2017-06-02 12:18:50 +0200 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2017-06-02 12:18:50 +0200 |
commit | 8ffa5b914983c0b0f4cf5a73b3df9b1b9cb40788 (patch) | |
tree | af91ff7ff9593a5a39c98a5e8334ad3b277a0dc4 /gmpxx.h | |
parent | 565bd97f5d91a2296939479f10e12ea7b1167ec7 (diff) | |
download | gmp-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |