[ovs-dev] [PATCH] lib: Fix compiler warnings on x86_64

Ben Pfaff blp at nicira.com
Mon Dec 27 21:20:35 UTC 2010


On Mon, Dec 27, 2010 at 1:09 PM, Reid Price <reid at nicira.com> wrote:
> On Mon, Dec 27, 2010 at 12:12 PM, Ben Pfaff <blp at nicira.com> wrote:
>> Funny that sys.maxint isn't the maximum value of an int.  That's a bit
>> deceptive--if it's the maximum value of a long it should be sys.maxlong.
>
> FWIW, I believe the trick on the python end is that the <int> and <long>
> types
> don't refer to the same thing as they do in C.  Integer values are all
> represented
> using a C 'long', but called 'int' for short.  The C 'int' is not exposed.

Yeah, I know that, but it's still irritating.




More information about the dev mailing list