Is this a bug in Turbo C 2.0?
Larry Jones
scjones at sdrc.UUCP
Fri Mar 9 08:53:12 AEST 1990
In article <3210 at pur-phy>, murphy at 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.
----
Larry Jones UUCP: uunet!sdrc!scjones
SDRC scjones at SDRC.UU.NET
2000 Eastman Dr. BIX: ltl
Milford, OH 45150-2789 AT&T: (513) 576-2070
"You know how Einstein got bad grades as a kid? Well MINE are even WORSE!"
-Calvin
More information about the Comp.lang.c
mailing list