fix float type cmp warning
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user