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


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to