diff options
author | Brad King <brad.king@kitware.com> | 2007-04-19 16:44:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-04-19 16:44:04 (GMT) |
commit | 94e27c10734db26b1b0a42b283e6457866168435 (patch) | |
tree | c553f56f9313b8d440dff705baffdf696ed2f919 /Source | |
parent | ded4cb6f8d35d2981914256270c11168a0a94b68 (diff) | |
download | CMake-94e27c10734db26b1b0a42b283e6457866168435.zip CMake-94e27c10734db26b1b0a42b283e6457866168435.tar.gz CMake-94e27c10734db26b1b0a42b283e6457866168435.tar.bz2 |
BUG: Fix stream state on successfully reading a string.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/kwsys_stl_string.hxx.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/kwsys_stl_string.hxx.in b/Source/kwsys/kwsys_stl_string.hxx.in index 37e023f..47c931f 100644 --- a/Source/kwsys/kwsys_stl_string.hxx.in +++ b/Source/kwsys/kwsys_stl_string.hxx.in @@ -76,7 +76,7 @@ operator>>(@KWSYS_NAMESPACE@_ios::istream& is, // Set flags for resulting state. if(is.peek() == EOF) { state |= @KWSYS_NAMESPACE@_ios::ios::eofbit; } - if(success) { state |= @KWSYS_NAMESPACE@_ios::ios::failbit; } + if(!success) { state |= @KWSYS_NAMESPACE@_ios::ios::failbit; } } // Set the final result state. |