Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ames!pasteur!ucbvax!decwrl!adobe!vonzelow From: vonzelow@adobe.COM (Jon von Zelowitz) Newsgroups: comp.windows.ms Subject: Re: Windows and Floating Point Keywords: windows, floating, link4 Message-ID: <372@adobe.UUCP> Date: 31 Jan 89 03:54:41 GMT References: <332@rna.UUCP> Reply-To: vonzelow@adobe.UUCP (Jon von Zelowitz) Organization: Adobe Systems Incorporated, Mountain View Lines: 26 In article <332@rna.UUCP> kc@rna.UUCP (Kaare Christian) writes: >I am having trouble using floating point code in my windows programs. >(Env -- msc 5.1, new libraries from Genie which were called C5FIX, >the new Genie link4, win sdk1.04) I just went through a conversion to 5.1, and I may have seen the same problem. As I understand it, in K&R C, all floating point values passed between functions are promoted to doubles. We had code which claimed in the function headers and (old-style) prototypes to pass floats. That was OK in 4.0. In MS C 5.10, the following happens: - A warning message, "parameter declaration different", is printed. - The resulting code from the compiler DOES NOT work correctly. In my opinion, this calls for more than a warning! Try changing code to use doubles, or use ANSI prototypes to cure this. See Microsoft Online Q29686. Good luck... ...sun!adobe!vonzelow Jon von Zelowitz