summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-22 18:55:01 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-22 18:55:01 (GMT)
commit04a2d20bba020444686642d593e1be0529113d5d (patch)
treec4a324b2400a768d9a7e907e5c40e8d18ad47b49 /tools
parentb62f37c3f9caf880b7f0b32dabf8db1947dcdc3a (diff)
downloadhdf5-04a2d20bba020444686642d593e1be0529113d5d.zip
hdf5-04a2d20bba020444686642d593e1be0529113d5d.tar.gz
hdf5-04a2d20bba020444686642d593e1be0529113d5d.tar.bz2
fix float type cmp warning
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5diff_array.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c
index 8321a98..e99b2cc 100644
--- a/tools/lib/h5diff_array.c
+++ b/tools/lib/h5diff_array.c
@@ -4584,7 +4584,7 @@ static hbool_t equal_double(double value, double expected, diff_opt_t *opts) {
return FALSE;
}
- if (value == expected)
+ if (H5_DBL_ABS_EQUAL(value, expected))
return TRUE;
if (opts->use_system_epsilon)
@@ -4628,7 +4628,7 @@ hbool_t equal_ldouble(long double value, long double expected, diff_opt_t *opts)
return FALSE;
}
- if (value == expected)
+ if (H5_DBL_ABS_EQUAL(value, expected))
return TRUE;
if (opts->use_system_epsilon)
@@ -4670,7 +4670,7 @@ static hbool_t equal_float(float value, float expected, diff_opt_t *opts) {
return FALSE;
}
- if (value == expected)
+ if (H5_FLT_ABS_EQUAL(value, expected))
return TRUE;
if (opts->use_system_epsilon)