summaryrefslogtreecommitdiff
path: root/gr-blocks/include/gnuradio/blocks/rotator.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2014-01-25 21:22:25 +0100
committerSylvain Munaut <tnt@246tNt.com>2014-01-28 20:35:25 +0100
commit6f3e96cf83f57a23b8d8cc109f56391ce29c6e7b (patch)
treeb1ff6397c9343e163835152e9818e3e75bdfb4ad /gr-blocks/include/gnuradio/blocks/rotator.h
parentbc6c05b7ea8e039a413e68fae5b7c4bf298f885a (diff)
blocks/rotator: Make the input data 'const'
The volk kernels are const and there is no reason to clobber the input Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/rotator.h')
-rw-r--r--gr-blocks/include/gnuradio/blocks/rotator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/rotator.h b/gr-blocks/include/gnuradio/blocks/rotator.h
index 7a63b461c8..9c3d9b6262 100644
--- a/gr-blocks/include/gnuradio/blocks/rotator.h
+++ b/gr-blocks/include/gnuradio/blocks/rotator.h
@@ -57,7 +57,7 @@ namespace gr {
return z;
}
- void rotateN(gr_complex *out, gr_complex *in, int n)
+ void rotateN(gr_complex *out, const gr_complex *in, int n)
{
volk_32fc_s32fc_x2_rotator_32fc(out, in, d_phase_incr, &d_phase, n);
}