Skip to content

Commit 111ebc0

Browse files
author
Hang Lyu
committed
fix
fix2
1 parent 26b378a commit 111ebc0

File tree

2 files changed

+356
-289
lines changed

2 files changed

+356
-289
lines changed

src/decoder/lattice-faster-decoder-combine.cc

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ void BucketQueue<Token>::Push(Token *tok) {
4848
// space frequently
4949
if (static_cast<int32>(bucket_index) > 0) {
5050
buckets_.resize(bucket_index + margin);
51+
first_nonempty_bucket_ = &buckets_[first_nonempty_bucket_index_];
5152
} else { // less than 0
5253
int32 increase_size = - static_cast<int32>(bucket_index) + margin;
5354
buckets_.resize(buckets_.size() + increase_size);

0 commit comments

Comments
 (0)