Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
fix2
  • Loading branch information
Hang Lyu committed Mar 29, 2019
1 parent 26b378a commit 111ebc0
Show file tree
Hide file tree
Showing 2 changed files with 356 additions and 289 deletions.
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 @@ -48,6 +48,7 @@ void BucketQueue<Token>::Push(Token *tok) {
// space frequently
if (static_cast<int32>(bucket_index) > 0) {
buckets_.resize(bucket_index + margin);
first_nonempty_bucket_ = &buckets_[first_nonempty_bucket_index_];
} else { // less than 0
int32 increase_size = - static_cast<int32>(bucket_index) + margin;
buckets_.resize(buckets_.size() + increase_size);
Expand Down
Loading

0 comments on commit 111ebc0

Please sign in to comment.