Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!emory!att!iuvax!bsu-cs!duerksen From: duerksen@bsu-cs.bsu.edu (Joel L. Duerksen) Newsgroups: comp.sys.apple2 Subject: Orca/C, bug? Keywords: Orca/C Message-ID: <11906@bsu-cs.bsu.edu> Date: 17 Oct 90 06:46:25 GMT Distribution: usa Organization: CS Dept, Ball St U, Muncie, IN, USA Lines: 31 The program below crashes on my computer.... Most compilers would complain about the 0.0 and would require explicit type casting. Orca/C compiles it just fine. The value of the double doesn't seem to matter, except sometimes the integer will get weird values instead of crashing the program. ps. I don't normally subtract zero from numbers :-) I found this while trying to port a piece of generic C code. ------------------ #include #include void main(void) { int i; i= 50; i -= 0.0; printf("i=%d\n", i); } Joel Duerksen USnail: 410 N. McKinley, Apt. 305, Muncie, IN. 47303 AT&T: 1-317-289-0430 ICBM: 85 24 31 W / 40 12 16 N RF: KB9EKY UUCP: !{iuvax,pur-ee}!bsu-cs!duerksen ARPA: duerksen@bsu-cs.bsu.edu