summaryrefslogtreecommitdiffstats
path: root/test/h5test.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2007-03-12 15:52:52 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2007-03-12 15:52:52 (GMT)
commit3015df0a5b02dee38264b191997c1949596c2c95 (patch)
tree6e26bbe1228af8a0ed8eea213f99989956350981 /test/h5test.h
parent8d91f0643b411da90476e2ac4fabca32b3045845 (diff)
downloadhdf5-3015df0a5b02dee38264b191997c1949596c2c95.zip
hdf5-3015df0a5b02dee38264b191997c1949596c2c95.tar.gz
hdf5-3015df0a5b02dee38264b191997c1949596c2c95.tar.bz2
[svn-r13501] Suppress the compiler warning about the equality comparison of floating-point values.
Diffstat (limited to 'test/h5test.h')
-rw-r--r--test/h5test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/h5test.h b/test/h5test.h
index 41d476c..8c10faf 100644
--- a/test/h5test.h
+++ b/test/h5test.h
@@ -128,7 +128,7 @@ extern MPI_Info h5_io_info_g; /* MPI INFO object for IO */
* It's the test's responsibility not to pass in the value 0, which
* may cause the equation to fail.
*/
-#define FLT_ABS_EQUAL(X,Y) (fabsf(X-Y)<FLT_EPSILON)
+#define FLT_ABS_EQUAL(X,Y) ((float)fabs(X-Y)<FLT_EPSILON)
#define DBL_ABS_EQUAL(X,Y) (fabs(X-Y)<DBL_EPSILON)
#define LDBL_ABS_EQUAL(X,Y) (fabsl(X-Y)<LDBL_EPSILON)