about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
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 65c3b15397c7..574c2566b7a5 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;
 }