aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-05-04 16:29:44 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-05-04 16:29:44 +0000
commitae6d9033a1c6b0b863b94c239c35a2df1a58948a (patch)
treebd26fa9b589c9dd80a71d4804d17e170c2ecab6b /src/libutil/util.cc
parentd8a31da1ea418de9c1fb7968b95d74d700a7a54f (diff)
* The eof() state isn't guaranteed to be set non-lazily. GCC 2.95
compatibility fix.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 65c3b1539..574c2566b 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -688,5 +688,5 @@ bool string2Int(const string & s, int & n)
{
istringstream str(s);
str >> n;
- return str && str.eof();
+ return str && str.get() == EOF;
}