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
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2013-01-05 01:02:47 +0400
committerKenneth Heafield <github@kheafield.com>2013-01-05 01:02:47 +0400
commitf9ee7ae4b3225a132d5abed20e38b0ff2bceb314 (patch)
tree7bec71a844c235cf34b18903d6fbd314fe1fb60f /util/read_compressed.cc
parent3203f7c92d97181d5f7d293be66873d2865d9209 (diff)
KenLM 0e5d259 including read_compressed fix
Diffstat (limited to 'util/read_compressed.cc')
-rw-r--r--util/read_compressed.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/read_compressed.cc b/util/read_compressed.cc
index 4ec94c4e1..7a1a8fb5e 100644
--- a/util/read_compressed.cc
+++ b/util/read_compressed.cc
@@ -370,7 +370,7 @@ ReadBase *ReadFactory(int fd, uint64_t &raw_amount) {
break;
}
try {
- AdvanceOrThrow(fd, -ReadCompressed::kMagicSize);
+ SeekOrThrow(fd, 0);
} catch (const util::ErrnoException &e) {
return new UncompressedWithHeader(hold.release(), header, ReadCompressed::kMagicSize);
}