diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-09-28 16:04:52 +0100 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-09-28 16:04:52 +0100 |
commit | d90a90e61084c069addaa919023dc6896d2f401a (patch) | |
tree | 4b55330e9ebf5c0204eeb82c096946304b883d15 /klm/lm/bhiksha.hh | |
parent | 1706bda5f393808583c6ab21a5d073b204827f52 (diff) | |
parent | 32288c27a523a1152afa019b9152f4401c3097ce (diff) |
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'klm/lm/bhiksha.hh')
-rw-r--r-- | klm/lm/bhiksha.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/klm/lm/bhiksha.hh b/klm/lm/bhiksha.hh index ff7fe452..bc705959 100644 --- a/klm/lm/bhiksha.hh +++ b/klm/lm/bhiksha.hh @@ -11,6 +11,7 @@ */ #include <inttypes.h> +#include <assert.h> #include "lm/model_type.hh" #include "lm/trie.hh" @@ -78,6 +79,7 @@ class ArrayBhiksha { util::ReadInt57(base, bit_offset, next_inline_.bits, next_inline_.mask); out.end = ((end_it - offset_begin_) << next_inline_.bits) | util::ReadInt57(base, bit_offset + total_bits, next_inline_.bits, next_inline_.mask); + //assert(out.end >= out.begin); } void WriteNext(void *base, uint64_t bit_offset, uint64_t index, uint64_t value) { |