unsigned 32 bit arithmetic type?

Robin Becker robin at reportlab.com
Wed Oct 25 05:42:33 EDT 2006


Hi, just trying to avoid wheel reinvention. I have need of an unsigned 32 bit 
arithmetic type to carry out a checksum operation and wondered if anyone had 
already defined such a beast.

Our current code works with 32 bit cpu's, but is failing with 64 bit 
comparisons; it's clearly wrong as we are comparing a number with a negated 
number; the bits might drop off in 32 bits, but not in 64.
-- 
Robin Becker




More information about the Python-list mailing list