[PPL-devel] [GIT] ppl/ppl(master): Fixed PPL_SPECIALIZE_LIMITS_INT.

Roberto Bagnara bagnara at cs.unipr.it
Sun May 3 15:19:43 CEST 2009


Module: ppl/ppl
Branch: master
Commit: b4dcb2959e3cc7b74aaa9f20c865b848e206818b
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=b4dcb2959e3cc7b74aaa9f20c865b848e206818b

Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date:   Sun May  3 15:19:00 2009 +0200

Fixed PPL_SPECIALIZE_LIMITS_INT.

---

 src/checked_numeric_limits.hh |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/checked_numeric_limits.hh b/src/checked_numeric_limits.hh
index 8484324..c6b0749 100644
--- a/src/checked_numeric_limits.hh
+++ b/src/checked_numeric_limits.hh
@@ -44,11 +44,13 @@ template <typename Policy>						\
   static const bool has_quiet_NaN =  Policy::has_nan;                   \
                                                                         \
   static Type min() {							\
-    return Checked::Extended_Int<Policy, T>::min;                       \
+    return Type(Checked::Extended_Int<Policy, T>::min,                  \
+                ROUND_NOT_NEEDED);                                      \
   }									\
                                                                         \
   static Type max() {							\
-    return Checked::Extended_Int<Policy, T>::max;                       \
+    return Type(Checked::Extended_Int<Policy, T>::max,                  \
+                ROUND_NOT_NEEDED);                                      \
   }									\
 									\
   static Type infinity() {						\




More information about the PPL-devel mailing list