Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ico!ism780c!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.std.c Subject: Re: subtraction between unsigned ints Message-ID: <14621@haddock.ima.isc.com> Date: 15 Sep 89 20:51:02 GMT References: <12570024@hpclwjm.HP.COM> <10833@riks.csl.sony.co.jp> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 8 In article <10833@riks.csl.sony.co.jp> diamond@ws.sony.junet (Norman Diamond) writes: >Hmm, this raises a new question. [Does pANS agree with K&R that a conversion >from int to unsigned is a nontrivial operation on one's complement machines?] Yes. (Whether existing compilers actually follow that rule is another question, to which I do not have first-hand knowledge.) Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint