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:
authorHieu Hoang <hieuhoang@gmail.com>2016-01-25 17:34:28 +0300
committerHieu Hoang <hieuhoang@gmail.com>2016-01-25 17:34:28 +0300
commit974510d0ceff03b6abb6fefc9cd880999fab200e (patch)
tree4c512e14c6da49e997af615f43de71a43f1d60b5 /util
parente4701070c423d3fe376706b438b9c171f9373a22 (diff)
parent42b8b89d54a5c670f02a16426a92cc1d0fb97754 (diff)
Merge ../mosesdecoder into perf_moses2
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;
}