Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!psuvax1!psuvm!cmh117 From: CMH117@psuvm.psu.edu (Charles Hannum) Newsgroups: comp.lang.c Subject: Re: Is this a bug in Turbo C 2.0? Message-ID: <90068.042959CMH117@psuvm.psu.edu> Date: 9 Mar 90 09:29:59 GMT References: <3210@pur-phy> <1180@sdrc.UUCP> Organization: Penn State University Lines: 20 In article <1180@sdrc.UUCP>, scjones@sdrc.UUCP (Larry Jones) says: > >In article <3210@pur-phy>, murphy@pur-phy (William J. Murphy) writes: >> [ should long = short + short; be done with short or long >> arithmetic? ] > >Either is acceptable. ANSI C requires the arithmetic to be done >in short -- if the result overflows, the results are undefined, >thus getting the right answer (by actually doing long arithmetic) >is acceptable. But relying on the result to be correct in *unacceptable*. Virtually, - Charles Martin Hannum II "Klein bottle for sale ... inquire within." (That's Charles to you!) "To life immortal!" cmh117@psuvm.{bitnet,psu.edu} "No noozzzz izzz netzzzsnoozzzzz..." c9h@psuecl.{bitnet,psu.edu} "Mem'ry, all alone in the moonlight ..."