diff options
author | Kenneth Heafield <github@kheafield.com> | 2013-01-05 01:02:47 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2013-01-05 01:02:47 +0400 |
commit | f9ee7ae4b3225a132d5abed20e38b0ff2bceb314 (patch) | |
tree | 7bec71a844c235cf34b18903d6fbd314fe1fb60f /util/read_compressed.cc | |
parent | 3203f7c92d97181d5f7d293be66873d2865d9209 (diff) |
KenLM 0e5d259 including read_compressed fix
Diffstat (limited to 'util/read_compressed.cc')
-rw-r--r-- | util/read_compressed.cc | 2 |
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); } |