[Gmp-commit] /var/hg/gmp: Explicit conversion from int to streampos.
mercurial at gmplib.org
mercurial at gmplib.org
Thu Mar 10 22:31:12 CET 2011
details: /var/hg/gmp/rev/747f8faeb304
changeset: 14031:747f8faeb304
user: Marc Glisse <marc.glisse at inria.fr>
date: Thu Mar 10 22:31:09 2011 +0100
description:
Explicit conversion from int to streampos.
diffstat:
ChangeLog | 4 ++++
tests/cxx/t-istream.cc | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r f54e40b32ad5 -r 747f8faeb304 ChangeLog
--- a/ChangeLog Thu Mar 10 17:48:20 2011 +0100
+++ b/ChangeLog Thu Mar 10 22:31:09 2011 +0100
@@ -1,3 +1,7 @@
+2011-03-10 Marc Glisse <marc.glisse at inria.fr>
+
+ * tests/cxx/t-istream.cc: Explicit conversion to streampos.
+
2011-03-10 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpn/x86/pentium4/sse2/bdiv_dbm1c.asm: New file, was in atom.
diff -r f54e40b32ad5 -r 747f8faeb304 tests/cxx/t-istream.cc
--- a/tests/cxx/t-istream.cc Thu Mar 10 17:48:20 2011 +0100
+++ b/tests/cxx/t-istream.cc Thu Mar 10 22:31:09 2011 +0100
@@ -145,7 +145,7 @@
size_t input_length = strlen (data[i].input);
want_pos = (data[i].want_pos == -1
? input_length : data[i].want_pos);
- want_eof = (want_pos == input_length);
+ want_eof = (want_pos == streampos(input_length));
want_ok = (data[i].want != NULL);
@@ -311,7 +311,7 @@
size_t input_length = strlen (data[i].input);
want_pos = (data[i].want_pos == -1
? input_length : data[i].want_pos);
- want_eof = (want_pos == input_length);
+ want_eof = (want_pos == streampos(input_length));
want_ok = (data[i].want != NULL);
@@ -483,7 +483,7 @@
size_t input_length = strlen (data[i].input);
want_pos = (data[i].want_pos == -1
? input_length : data[i].want_pos);
- want_eof = (want_pos == input_length);
+ want_eof = (want_pos == streampos(input_length));
want_ok = (data[i].want != NULL);
More information about the gmp-commit
mailing list