Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!think.com!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!mouse From: mouse@thunder.mcrcim.mcgill.edu (der Mouse) Newsgroups: comp.lang.c Subject: Re: Signed to unsigned comparison Message-ID: <1991Mar26.123819.10939@thunder.mcrcim.mcgill.edu> Date: 26 Mar 91 12:38:19 GMT References: <40472@cup.portal.com> <1991Mar24.001308.12852@zoo.toronto.edu> Organization: McGill Research Centre for Intelligent Machines Lines: 14 In article <1991Mar24.001308.12852@zoo.toronto.edu>, henry@zoo.toronto.edu (Henry Spencer) writes: > The -1 is converted to `unsigned int', probably giving something like > 65535 or 2147483647, and then the comparison is done, probably not 65535 or *what*? I don't think 31-bit ints can really be spoken of with language like "probably". :-), naturally.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu