Skip to content

Commit 687d313

Browse files
satmassdanpovey
authored andcommitted
[src] Fix bug when compiling with flag -DNDEBUG (#2162)
1 parent 829b013 commit 687d313

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lat/compose-lattice-pruned.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,8 @@ void PrunedCompactLatticeComposer::ProcessTransition(int32 src_composed_state,
757757
if (ret.second) {
758758
// Successfully inserted. Most of the rest of this block deals with the
759759
// consequences of adding a new state.
760-
KALDI_ASSERT(clat_out_->AddState() == new_composed_state);
760+
int32 ans = clat_out_->AddState();
761+
KALDI_ASSERT(ans == new_composed_state);
761762
dest_composed_state = new_composed_state;
762763
composed_state_info_.resize(dest_composed_state + 1);
763764
dest_info = &(composed_state_info_[dest_composed_state]);

0 commit comments

Comments
 (0)