This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Is comparing against 0.0 safe?
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Is comparing against 0.0 safe?
- From: Stephen L Moshier <moshier at mediaone dot net>
- Date: Wed, 16 Feb 2000 14:11:56 -0500 (EST)
- cc: gcc at gcc dot gnu dot org
- Reply-To: moshier at mediaone dot net
> 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.