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 | e4ead2deba4dedf53af7cf5640ccdb913c13bdf3 (patch) | |
tree | e63b58bff49b05fd0de26f8d64e1ad24c5ce00fe /klm/lm/bhiksha.hh | |
parent | ce75d2ce4e405b6c5ddec069fc9844bed64d548d (diff) | |
parent | 8668b6a55854eda404e29a80ace4027e1ffd2e5b (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) { |