Turbo-C Debugger Oddity
Eric A. Raymond
raymond at ptolemy.arc.nasa.gov
Thu Feb 9 06:04:51 AEST 1989
In article <210 at calmasd.Prime.COM> wlp at 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 at pluto.arc.nasa.gov)
Nothing left to do but :-) :-) :-)
More information about the Comp.lang.c
mailing list