diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2011-03-09 17:46:08 +0100 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2011-03-09 17:46:08 +0100 |
commit | ae714d3d34a5c0b20ea36e64bb132540975022b1 (patch) | |
tree | 4e130fe20ed676856516a23af8e2eeca47e6a21b /cxx/ismpf.cc | |
parent | ce96852eb7cb64ed639e1e2d0e9f23df9bf2a83d (diff) | |
download | gmp-ae714d3d34a5c0b20ea36e64bb132540975022b1.tar.gz |
Keep eofbit after istream read to the end.
Diffstat (limited to 'cxx/ismpf.cc')
-rw-r--r-- | cxx/ismpf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cxx/ismpf.cc b/cxx/ismpf.cc index bfe4dc8b9..520d4c3e2 100644 --- a/cxx/ismpf.cc +++ b/cxx/ismpf.cc @@ -120,7 +120,7 @@ operator>> (istream &i, mpf_ptr f) if (i.good()) // last character read was non-numeric i.putback(c); else if (i.eof() && ok) // stopped just before eof - i.clear(); + i.clear(ios::eofbit); if (ok) ASSERT_NOCARRY (mpf_set_str(f, s.c_str(), base)); // extract the number |