Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!elroy.jpl.nasa.gov!ncar!gatech!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.sys.apple2 Subject: Re: Orca/C, bug? Keywords: Orca/C Message-ID: <14175@smoke.BRL.MIL> Date: 17 Oct 90 21:33:14 GMT References: <11906@bsu-cs.bsu.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 10 In article <11906@bsu-cs.bsu.edu> duerksen@bsu-cs.bsu.edu (Joel L. Duerksen) writes: >The program below crashes on my computer.... Most compilers would >complain about the 0.0 and would require explicit type casting. No, they would not. The C language requires that compilers happily accept the construct "i -= 0.0", which means "convert i to double, subtract 0.0, convert back to int, and store into i". I have no doubt that some compilers get this wrong, but if so it is a bug in the compiler.