mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-05 15:58:03 +03:00
Flush before seek
This commit is contained in:
parent
357351f545
commit
42b8b89d54
@ -58,6 +58,7 @@ class FileStream : public FakeOStream<FileStream> {
|
||||
}
|
||||
|
||||
FileStream &seekp(uint64_t to) {
|
||||
flush();
|
||||
util::SeekOrThrow(fd_, to);
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user