subtraction between unsigned ints

Karl Heuer karl at haddock.ima.isc.com
Sat Sep 16 06:51:02 AEST 1989


In article <10833 at riks.csl.sony.co.jp> diamond at 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 at haddock.isc.com), The Walking Lint



More information about the Comp.std.c mailing list