diff options
author | michaelld <michaelld@221aa14e-8319-0410-a670-987f0aec2ac5> | 2006-08-14 22:44:48 +0000 |
---|---|---|
committer | michaelld <michaelld@221aa14e-8319-0410-a670-987f0aec2ac5> | 2006-08-14 22:44:48 +0000 |
commit | 4e8b03a868354c8c8ef9c72b021bf52a53615aee (patch) | |
tree | 382777ef489f77eaa941c6338c0d1bcce8d163fa /gr-error-correcting-codes/src/lib/libecc/encoder.cc | |
parent | e7d7a023503a193009ea14eaf5ee1eab19e2b60f (diff) |
Fixes YA compile issue of a sloppy use of "const" ... should compile
now on all systems (with warnings possibly, but no errors). Mods which
force template expansion for a specific metric PDF function type
<float>, while still allowing for use-defined M-ary precision of the metrics.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3282 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-error-correcting-codes/src/lib/libecc/encoder.cc')
-rw-r--r-- | gr-error-correcting-codes/src/lib/libecc/encoder.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gr-error-correcting-codes/src/lib/libecc/encoder.cc b/gr-error-correcting-codes/src/lib/libecc/encoder.cc index 7e7718af1a..124c1eb1d3 100644 --- a/gr-error-correcting-codes/src/lib/libecc/encoder.cc +++ b/gr-error-correcting-codes/src/lib/libecc/encoder.cc @@ -118,6 +118,11 @@ encoder::encode " # input bits used = " << d_in_buf->n_items_used() << "\n"; } + // clear these buffers, just in case + + d_in_buf = 0; + d_out_buf = 0; + // return the actual number of input bits used return (n_bits_to_input - d_n_bits_to_input); @@ -209,6 +214,11 @@ encoder::encode " # input bits used = " << d_in_buf->n_items_used() << "\n"; } + // clear these buffers, just in case + + d_in_buf = 0; + d_out_buf = 0; + // return the actual number of output bits written return (n_bits_to_output - d_n_bits_to_output); |