summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/char_to_short_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2013-11-23 20:00:33 -0500
committerTom Rondeau <tom@trondeau.com>2013-11-23 20:00:33 -0500
commitc76c10d43f0c7a086700fcc8c6dc8740243aa745 (patch)
tree3883cba6876e3df32bbdd3d86ec9ad7d2d6e73c0 /gr-blocks/lib/char_to_short_impl.cc
parent886fd876c1f1b5d4ac992506b0f8d2c1ce1449f8 (diff)
blocks: prevent alowing more input streams than this block uses.
Diffstat (limited to 'gr-blocks/lib/char_to_short_impl.cc')
-rw-r--r--gr-blocks/lib/char_to_short_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-blocks/lib/char_to_short_impl.cc b/gr-blocks/lib/char_to_short_impl.cc
index 065fb58bbe..fa8d55fbd0 100644
--- a/gr-blocks/lib/char_to_short_impl.cc
+++ b/gr-blocks/lib/char_to_short_impl.cc
@@ -38,8 +38,8 @@ namespace gr {
char_to_short_impl::char_to_short_impl(size_t vlen)
: sync_block("char_to_short",
- io_signature::make (1, -1, sizeof(char)*vlen),
- io_signature::make (1, 1, sizeof(short)*vlen)),
+ io_signature::make(1, 1, sizeof(char)*vlen),
+ io_signature::make(1, 1, sizeof(short)*vlen)),
d_vlen(vlen)
{
const int alignment_multiple =
@@ -52,8 +52,8 @@ namespace gr {
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
- const int8_t *in = (const int8_t *) input_items[0];
- int16_t *out = (int16_t *) output_items[0];
+ const int8_t *in = (const int8_t *)input_items[0];
+ int16_t *out = (int16_t *)output_items[0];
volk_8i_convert_16i(out, in, d_vlen*noutput_items);