[PPL-devel] [GIT] ppl/ppl(floating_point): Fixed operator>>(std::istream&, Interval< Boundary, Info>&).

Roberto Bagnara bagnara at cs.unipr.it
Thu Sep 24 16:35:45 CEST 2009


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

Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date:   Thu Sep 24 16:34:32 2009 +0200

Fixed operator>>(std::istream&, Interval<Boundary, Info>&).

---

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

diff --git a/src/Interval.templates.hh b/src/Interval.templates.hh
index fcfecf6..f9d3f1e 100644
--- a/src/Interval.templates.hh
+++ b/src/Interval.templates.hh
@@ -234,8 +234,9 @@ operator>>(std::istream& is, Interval<Boundary, Info>& x) {
   bool upper_boundary_infinity = false;
   switch (lower_r) {
   case V_EQ:
+  case V_GE:
     break;
-  case V_LE:
+  case V_GT:
     lower_open = true;
     break;
   case V_EQ_MINUS_INFINITY:
@@ -254,8 +255,9 @@ operator>>(std::istream& is, Interval<Boundary, Info>& x) {
   }
   switch (upper_r) {
   case V_EQ:
+  case V_LE:
     break;
-  case V_GE:
+  case V_LT:
     upper_open = true;
     break;
   case V_EQ_MINUS_INFINITY:




More information about the PPL-devel mailing list