diff options
author | Jacob Gilbert <mrjacobagilbert@gmail.com> | 2016-03-29 05:56:02 -0700 |
---|---|---|
committer | Jacob Gilbert <mrjacobagilbert@gmail.com> | 2016-03-29 05:56:02 -0700 |
commit | f56d43627b0027adff8ec1f939ef967c8d2078ae (patch) | |
tree | 483b49cd2066fb9fa1f3f78b30876ab1ce0dde68 | |
parent | 8350ee94c0183356f1ab6f0e5f666728225266fe (diff) |
head block nitems setter now takes uint64_t instead of 'int' allowing values greater than 2^31 to be set
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/head.h | 2 | ||||
-rw-r--r-- | gr-blocks/lib/head_impl.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/head.h b/gr-blocks/include/gnuradio/blocks/head.h index 24772a43fa..a41137c023 100644 --- a/gr-blocks/include/gnuradio/blocks/head.h +++ b/gr-blocks/include/gnuradio/blocks/head.h @@ -47,7 +47,7 @@ namespace gr { uint64_t nitems); virtual void reset() = 0; - virtual void set_length(int nitems) = 0; + virtual void set_length(uint64_t nitems) = 0; }; } /* namespace blocks */ diff --git a/gr-blocks/lib/head_impl.h b/gr-blocks/lib/head_impl.h index fe2918c404..4a2c33864b 100644 --- a/gr-blocks/lib/head_impl.h +++ b/gr-blocks/lib/head_impl.h @@ -39,7 +39,7 @@ namespace gr { ~head_impl(); void reset() { d_ncopied_items = 0; } - void set_length(int nitems) { d_nitems = nitems; } + void set_length(uint64_t nitems) { d_nitems = nitems; } int work(int noutput_items, gr_vector_const_void_star &input_items, |