Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!eos!ptolemy!raymond From: raymond@ptolemy.arc.nasa.gov (Eric A. Raymond) Newsgroups: comp.lang.c Subject: Re: Turbo-C Debugger Oddity Keywords: Turbo-C Debugger, Floating Point Errors Message-ID: <985@ptolemy.arc.nasa.gov> Date: 8 Feb 89 20:04:51 GMT References: <210@calmasd.Prime.COM> Reply-To: raymond@ptolemy.UUCP (Eric A. Raymond) Organization: NASA Ames Research Center, Moffett Field, CA Lines: 23 In article <210@calmasd.Prime.COM> wlp@calmasd.Prime.COM (Walter L. Peterson, Jr.) writes: > Floating Point Error: Domain > It seems like you may be passing a float when a double was expected. One sneaky way for this to occur is if you use new function prototypes in one source file and old style declarations in another file. For example: File A: extern void foo(float x); File B: void foo(x) float x; { ... } In File A, foo is defined as you would expect (x is a float). In file B, x is promoted to a double. ---- -- Eric A. Raymond (raymond@pluto.arc.nasa.gov) Nothing left to do but :-) :-) :-)