On Sat, 18 Aug 2007, [EMAIL PROTECTED] wrote: > Author: chromatic > Date: Sat Aug 18 14:06:33 2007 > New Revision: 20688 > > Modified: > trunk/include/parrot/misc.h > trunk/src/string.c > > Log: > Added FLOAT_IS_ZERO() macro to parrot/misc.h for comparing floats to zero. > This may need some attention on platforms where INTVAL isn't four bytes, but I > did the best I could.
Stepping back a moment, I don't think this is a good idea. The original code, f == 0.0 is perfectly clear and quite well-defined. I think the compiler warning should simply be turned off. It isn't doing anything useful here. -- Andy Dougherty [EMAIL PROTECTED]