From baffa5a7f877fc8be1b44955c2387e0988bd671d Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 7 Aug 2014 17:34:27 +0200 Subject: [PATCH] Fix a bug when LEDA is used instead of GMP That is a really trivial bug fix, for a rather nasty bug! I spend several hours on it! Currently the `leda::rational::operator>>` does not clear the `failbit` of the stream, when it reads a number without denominator, and the EOF directly after. The flag `eofbit` and `failbit` are set while trying to read the '/', but in that case the `failbit` should be cleared from the stream status. Trivial bug fix for master. --- .../test/Boolean_set_operations_2/data/pgn_holes4.dat | 2 +- .../test/Boolean_set_operations_2/data/pgn_holes5.dat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Boolean_set_operations_2/test/Boolean_set_operations_2/data/pgn_holes4.dat b/Boolean_set_operations_2/test/Boolean_set_operations_2/data/pgn_holes4.dat index 6cb5363bf21..17506b10fa7 100644 --- a/Boolean_set_operations_2/test/Boolean_set_operations_2/data/pgn_holes4.dat +++ b/Boolean_set_operations_2/test/Boolean_set_operations_2/data/pgn_holes4.dat @@ -34,4 +34,4 @@ 3 7 4 7 5 -8 4 \ No newline at end of file +8 4 diff --git a/Boolean_set_operations_2/test/Boolean_set_operations_2/data/pgn_holes5.dat b/Boolean_set_operations_2/test/Boolean_set_operations_2/data/pgn_holes5.dat index e5d8ed0765b..2b8b9091366 100644 --- a/Boolean_set_operations_2/test/Boolean_set_operations_2/data/pgn_holes5.dat +++ b/Boolean_set_operations_2/test/Boolean_set_operations_2/data/pgn_holes5.dat @@ -17,4 +17,4 @@ 3 4 0 4 2 -6 3 \ No newline at end of file +6 3