[GIT] ppl/ppl(master): Removed a couple of useless explicit casts.

Module: ppl/ppl Branch: master Commit: 76489dec6c233a03f13706fb58b3b370c20fe412 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=76489dec6c233...
Author: Enea Zaffanella zaffanella@cs.unipr.it Date: Fri Feb 24 15:13:34 2012 +0100
Removed a couple of useless explicit casts.
---
src/checked_float.inlines.hh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/checked_float.inlines.hh b/src/checked_float.inlines.hh index 03e1bc7..192926e 100644 --- a/src/checked_float.inlines.hh +++ b/src/checked_float.inlines.hh @@ -872,7 +872,7 @@ assign_float_mpq(T& to, const mpq_class& from, Rounding_Dir dir) { else return round_gt_float<To_Policy>(to, dir); } - if (exponent > int(Float<T>::Binary::EXPONENT_MAX + 1)) { + if (exponent > Float<T>::Binary::EXPONENT_MAX + 1) { overflow: if (sign < 0) return set_neg_overflow_float<To_Policy>(to, dir); @@ -905,7 +905,7 @@ assign_float_mpq(T& to, const mpq_class& from, Rounding_Dir dir) { } else --exponent; - if (exponent > int(Float<T>::Binary::EXPONENT_MAX)) { + if (exponent > Float<T>::Binary::EXPONENT_MAX) { mpz_clear(mantissa); goto overflow; }
participants (1)
-
Enea Zaffanella