aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/processor/binarystream.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/processor/binarystream.h b/src/processor/binarystream.h
index 8cb3af98..8769c250 100644
--- a/src/processor/binarystream.h
+++ b/src/processor/binarystream.h
@@ -77,6 +77,9 @@ class binarystream {
void rewind() {
stream_.seekg (0, ios::beg);
stream_.seekp (0, ios::beg);
+ // This is to clear all the error flags, since only the EOF flag is cleared
+ // with seekg().
+ stream_.clear();
}
private: