Signed to unsigned comparison

Chris Torek torek at elf.ee.lbl.gov
Sun Mar 24 12:26:56 AEST 1991


In article <11389 at dog.ee.lbl.gov> I wrote:
>	(unsigned)5 > (unsigned)-1
>	0x00000005 > 0xfffffffe

Oops, brain fault, that was one's complement.  The idea was right though.
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
Berkeley, CA		Domain:	torek at ee.lbl.gov



More information about the Comp.lang.c mailing list