Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/file_stream.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/file_stream.hh b/util/file_stream.hh
index ae9ad5aa7..be26a0921 100644
--- a/util/file_stream.hh
+++ b/util/file_stream.hh
@@ -58,6 +58,7 @@ class FileStream : public FakeOStream<FileStream> {
}
FileStream &seekp(uint64_t to) {
+ flush();
util::SeekOrThrow(fd_, to);
return *this;
}