diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-01-23 15:08:47 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-01-23 15:08:47 (GMT) |
commit | 670027bf81efc7286b38c036acb8253c1093cfb4 (patch) | |
tree | 158d76443918dca0a43697cb51bb19e8f012862c /tools/lib/h5diff_array.c | |
parent | cf556437de8cd76c373f17bce5a479b6be0dbf03 (diff) | |
parent | edcba1ce2e11f80d20fcce8f4cfacae1308bf839 (diff) | |
download | hdf5-670027bf81efc7286b38c036acb8253c1093cfb4.zip hdf5-670027bf81efc7286b38c036acb8253c1093cfb4.tar.gz hdf5-670027bf81efc7286b38c036acb8253c1093cfb4.tar.bz2 |
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
* commit 'edcba1ce2e11f80d20fcce8f4cfacae1308bf839':
more cleanup
Max Library "index" should be 7.
not use hdf5 private header
fix float type cmp warning
fix float type cmp warning
fix missing prototype warning
fix uninitizlized warning
change it back
pick up missing piece
fix unused related warnings
removed unused parameter
more fix and address comments
remove unsed var,function,macro, etc
Diffstat (limited to 'tools/lib/h5diff_array.c')
-rw-r--r-- | tools/lib/h5diff_array.c | 6 |
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) |