🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #594

Re: subtraction between unsigned ints

#594
From: Karl Heuer
Date: Fri, 15 Sep 1989 20:51
8 lines
959 bytes
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
Technical Details
Message-ID: <14621@haddock.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ico!ism780c!haddock!karl
References: <KURO.89Sep5111940@shochu.Sun.Com> <12570024@hpclwjm.HP.COM> <10833@riks.csl.sony.co.jp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <KURO.89Sep5111940@shochu.Sun.Com> <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