On Wed, Dec 02, 2009 at 03:47:00PM +0100, Martin Braun wrote:
> Hi,
> 
> I ran into a problem when doing some tests where I piped 1e6 samples
> through a filter. The problem is, gr_head() can only go as far as
> MAX_INT when limiting data. However, I don't really see a reason why the
> counter shouldn't be an unsigned long. Otherwise, such applications
> would require some workarounds with vectors or otherwise, which I find a
> bit ugly. Here's the patch. Made against #11663 in SVN.
> 
> MB

Thanks, Martin!

This should be "long long" if you want a 64-bit value.
Can you please resubmit?  Thanks!

On x86:

  $ ./sizeof-long
  sizeof(int) = 4
  sizeof(unsigned long) = 4
  sizeof(long long) = 8

On x86_64:

  $ ./sizeof-long
  sizeof(int) = 4
  sizeof(unsigned long) = 8
  sizeof(long long) = 8


Eric


_______________________________________________
Patch-gnuradio mailing list
Patch-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/patch-gnuradio

Reply via email to