diff options
author | michaelld | 2007-02-05 20:29:40 +0000 |
---|---|---|
committer | michaelld | 2007-02-05 20:29:40 +0000 |
commit | 9de985caa57cb46a569cacff59a43cbe455a8bc5 (patch) | |
tree | 61c87e14ea2a27796074fb0b5110fb4d8d714020 /gr-trellis/src/lib/trellis_viterbi_combined_b.cc | |
parent | dcc3193644f81fb5547bcf1d2273a84eb6a66002 (diff) | |
download | gnuradio-9de985caa57cb46a569cacff59a43cbe455a8bc5.tar.gz gnuradio-9de985caa57cb46a569cacff59a43cbe455a8bc5.tar.bz2 gnuradio-9de985caa57cb46a569cacff59a43cbe455a8bc5.zip |
Fix for ticket:29 . Newly generated .cc,.h,.i files are also checked
in, with the "warning" message at the top.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4385 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-trellis/src/lib/trellis_viterbi_combined_b.cc')
-rw-r--r-- | gr-trellis/src/lib/trellis_viterbi_combined_b.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-trellis/src/lib/trellis_viterbi_combined_b.cc b/gr-trellis/src/lib/trellis_viterbi_combined_b.cc index 62d877f6a..9860c7f86 100644 --- a/gr-trellis/src/lib/trellis_viterbi_combined_b.cc +++ b/gr-trellis/src/lib/trellis_viterbi_combined_b.cc @@ -20,6 +20,8 @@ * Boston, MA 02110-1301, USA. */ +// WARNING: this file is machine generated. Edits will be over written + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -119,8 +121,8 @@ void viterbi_algorithm_combined(int I, int S, int O, for(int j=0;j<S;j++) { // for each next state do ACS minm=INF; minmi=0; - for(int i=0;i<PS[j].size();i++) { - int i0 = j*I+i; + for(unsigned int i=0;i<PS[j].size();i++) { + //int i0 = j*I+i; if((mm=alpha[alphai*S+PS[j][i]]+metric[OS[PS[j][i]*I+PI[j][i]]])<minm) minm=mm,minmi=i; } |