commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/07: head block nitems setter now takes u


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/07: head block nitems setter now takes uint64_t instead of 'int' allowing values greater than 2^31 to be set
Date: Thu, 31 Mar 2016 05:49:51 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit f56d43627b0027adff8ec1f939ef967c8d2078ae
Author: Jacob Gilbert <address@hidden>
Date:   Tue Mar 29 05:56:02 2016 -0700

    head block nitems setter now takes uint64_t instead of 'int' allowing 
values greater than 2^31 to be set
---
 gr-blocks/include/gnuradio/blocks/head.h | 2 +-
 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 24772a4..a41137c 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 fe2918c..4a2c338 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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]