Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hang Lyu committed Mar 29, 2019
1 parent 26b378a commit c66f1bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/decoder/lattice-faster-decoder-combine-bucketqueue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void BucketQueue<Token>::Push(Token *tok) {
} else { // less than 0
int32 increase_size = - static_cast<int32>(bucket_index) + margin;
buckets_.resize(buckets_.size() + increase_size);
first_nonempty_bucket_ = &buckets_[first_nonempty_bucket_index_];
// translation
for (size_t i = buckets_.size() - 1; i >= increase_size; i--) {
buckets_[i].swap(buckets_[i - increase_size]);
Expand Down
1 change: 1 addition & 0 deletions src/decoder/lattice-faster-decoder-combine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void BucketQueue<Token>::Push(Token *tok) {
} else { // less than 0
int32 increase_size = - static_cast<int32>(bucket_index) + margin;
buckets_.resize(buckets_.size() + increase_size);
first_nonempty_bucket_ = &buckets_[first_nonempty_bucket_index_];
// translation
for (size_t i = buckets_.size() - 1; i >= increase_size; i--) {
buckets_[i].swap(buckets_[i - increase_size]);
Expand Down

0 comments on commit c66f1bb

Please sign in to comment.