Skip to content

Commit 7f0c9c1

Browse files
jiedanzhu2307danpovey
authored andcommitted
[src] Change data-type for hash in lattice alignment (avoid debugger complaints) (#3672)
1 parent 47d516d commit 7f0c9c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lat/word-align-lattice-lexicon.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class LatticeLexiconWordAligner {
116116
size_t Hash() const {
117117
VectorHasher<int32> vh;
118118
const int32 p1 = 11117, p2 = 90647, p3 = 3967, p4 = 3557; // primes.
119-
int32 ans = 0;
119+
size_t ans = 0;
120120
for (int32 i = 0; i < static_cast<int32>(transition_ids_.size()); i++) {
121121
ans *= p1;
122122
ans += vh(transition_ids_[i]);

0 commit comments

Comments
 (0)