Skip to content

Commit

Permalink
[src] Change data-type for hash in lattice alignment (avoid debugger …
Browse files Browse the repository at this point in the history
…complaints) (kaldi-asr#3672)
  • Loading branch information
jiedanzhu2307 authored and danpovey committed Oct 21, 2019
1 parent 47d516d commit 7f0c9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lat/word-align-lattice-lexicon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class LatticeLexiconWordAligner {
size_t Hash() const {
VectorHasher<int32> vh;
const int32 p1 = 11117, p2 = 90647, p3 = 3967, p4 = 3557; // primes.
int32 ans = 0;
size_t ans = 0;
for (int32 i = 0; i < static_cast<int32>(transition_ids_.size()); i++) {
ans *= p1;
ans += vh(transition_ids_[i]);
Expand Down

0 comments on commit 7f0c9c1

Please sign in to comment.