summaryrefslogtreecommitdiff
path: root/gr-trellis/src/lib/trellis_viterbi_X.cc.t
diff options
context:
space:
mode:
Diffstat (limited to 'gr-trellis/src/lib/trellis_viterbi_X.cc.t')
-rw-r--r--gr-trellis/src/lib/trellis_viterbi_X.cc.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-trellis/src/lib/trellis_viterbi_X.cc.t b/gr-trellis/src/lib/trellis_viterbi_X.cc.t
index e8b9ee695..0ab423b0a 100644
--- a/gr-trellis/src/lib/trellis_viterbi_X.cc.t
+++ b/gr-trellis/src/lib/trellis_viterbi_X.cc.t
@@ -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 {