[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Re: gr compiles on FC4(test3) ok - issue with usrp mu
From: |
Eric Blossom |
Subject: |
[Discuss-gnuradio] Re: gr compiles on FC4(test3) ok - issue with usrp mux |
Date: |
Tue, 17 May 2005 16:03:10 -0700 |
User-agent: |
Mutt/1.5.6i |
On Tue, May 17, 2005 at 06:11:07PM -0400, cswiger wrote:
>
> same thing, using src.set_mux(int(0xf0f0f0f2)):
>
> return _usrp1.usrp1_source_c_sptr_set_mux(*args)
> OverflowError: argument number 2: long int too large to convert to int
>
> in python2.4:
>
> >>> mux=0xf0f0f0f2
> >>> mux
> 4042322162L
> >>> int(mux)
> 4042322162L
> >>> int(4042322162)
> 4042322162L
>
> Guessing that they started enforcing the sign bit - I tried
> getting the two's complement for 0xf0f0f0f2 ( xor ffffffff + 1 )
> on a calculator and using
>
> src.set_mux(-252645134)
>
> and that works!
And it's so obvious [snicker...]
> --Chuck
Maybe I can get swig to treat this as an unsigned integer.
Hopefully that will shut it up.
Eric