This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Is comparing against 0.0 safe?



> Is comparing against 0.0 safe?
Certainly not!
The program that Beebe posted last December to this list is a counterexample.

> -Wfloat-equal
Sounds pretty useless.  The programmer better be smarter than
the compiler about this, or else ask somebody for help.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]