summaryrefslogtreecommitdiff
path: root/gr-trellis/src/lib/trellis_viterbi_s.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-trellis/src/lib/trellis_viterbi_s.cc')
-rw-r--r--gr-trellis/src/lib/trellis_viterbi_s.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-trellis/src/lib/trellis_viterbi_s.cc b/gr-trellis/src/lib/trellis_viterbi_s.cc
index 6180dabc3..f5a0705c2 100644
--- a/gr-trellis/src/lib/trellis_viterbi_s.cc
+++ b/gr-trellis/src/lib/trellis_viterbi_s.cc
@@ -123,7 +123,7 @@ void viterbi_algorithm(const int I, const int S, const int O,
minm=INF;
minmi=0;
for(int i=0;i<S;i++)
- if((mm=trace[(K-1)*S+i])<minm) minm=mm,minmi=i;
+ if((mm=alpha[alphai*S+i])<minm) minm=mm,minmi=i;
st=minmi;
}
else {