diff options
author | Douglas Weber <douglas.weber@student.kit.edu> | 2018-05-16 14:49:36 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-05-27 10:46:05 +0200 |
commit | 493338d86d82e9e10f5d9d4b42f2473b7275c7a2 (patch) | |
tree | bc8bccd59d3c1c0996c5379631a526bf8050983e | |
parent | 232c034d6080142dbd09eda8a3bfcc46c956291a (diff) |
move declaration to case
-rw-r--r-- | gr-blocks/lib/float_to_complex_impl.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-blocks/lib/float_to_complex_impl.cc b/gr-blocks/lib/float_to_complex_impl.cc index a2dd0d3bb8..d66d05a327 100644 --- a/gr-blocks/lib/float_to_complex_impl.cc +++ b/gr-blocks/lib/float_to_complex_impl.cc @@ -54,8 +54,7 @@ namespace gr { gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) { - float *r = (float *)input_items[0]; - float *i = (float *)input_items[1]; + float *r = (float *) input_items[0]; gr_complex *out = (gr_complex *) output_items[0]; switch (input_items.size ()){ @@ -65,10 +64,13 @@ namespace gr { break; case 2: + { //for (size_t j = 0; j < noutput_items*d_vlen; j++) // out[j] = gr_complex (r[j], i[j]); + float *i = (float *) input_items[1]; volk_32f_x2_interleave_32fc(out, r, i, noutput_items*d_vlen); break; + } default: assert (0); |