diff options
Diffstat (limited to 'lm/search_trie.cc')
-rw-r--r-- | lm/search_trie.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lm/search_trie.cc b/lm/search_trie.cc index 9a3e96916..debcfd077 100644 --- a/lm/search_trie.cc +++ b/lm/search_trie.cc @@ -5,6 +5,7 @@ #include "lm/binary_format.hh" #include "lm/blank.hh" #include "lm/lm_exception.hh" +#include "lm/max_order.hh" #include "lm/quantize.hh" #include "lm/trie.hh" #include "lm/trie_sort.hh" @@ -88,7 +89,7 @@ class BackoffMessages { if (!HasExtension(weights.backoff)) { weights.backoff = kExtensionBackoff; UTIL_THROW_IF(fseek(unigrams, -sizeof(weights), SEEK_CUR), util::ErrnoException, "Seeking backwards to denote unigram extension failed."); - WriteOrThrow(unigrams, &weights, sizeof(weights)); + util::WriteOrThrow(unigrams, &weights, sizeof(weights)); } const ProbPointer &write_to = *reinterpret_cast<const ProbPointer*>(current_ + sizeof(WordIndex)); base[write_to.array][write_to.index] += weights.backoff; |