Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!sri-unix!sri-spam!mordor!lll-tis!ptsfa!ihnp4!ihlpm!kmh From: kmh@ihlpm.ATT.COM (Kirk Hoyer) Newsgroups: comp.sys.ibm.pc Subject: Re: Another TURBO C Bug?? Message-ID: <1239@ihlpm.ATT.COM> Date: Mon, 6-Jul-87 10:39:35 EDT Article-I.D.: ihlpm.1239 Posted: Mon Jul 6 10:39:35 1987 Date-Received: Tue, 7-Jul-87 05:54:13 EDT References: <1236@ihlpm.ATT.COM> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 11 Keywords: TURBO C floating point problems Summary: first problem is really a program bug Paul Chisholm correctly pointed out to me that, according to K & R section 2.7, floats are cast to doubles when used as function arguments. Many thanks to Paul for his observation. (I should note that the "cc" compiler on the large UNIX system I use at work was able to handle the program correctly, even though floats and double are different sizes.) This explains the first problem cited in my posting, but not the second. I will try to provide a more concrete example of this problem in a future posting. Kirk Hoyer