mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
OESS-168: Remove clang warnings. (#1074)
* OESS-168: Remove clang warnings. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
52cb2833de
commit
e2cdb618ae
@ -2070,7 +2070,7 @@ diff_ldouble_element(unsigned char *mem1, unsigned char *mem2, hsize_t elem_idx,
|
||||
|
||||
/* both not NaN, do the comparison */
|
||||
if (!isnan1 && !isnan2) {
|
||||
if (ABS(temp1_double - temp2_double) > opts->delta) {
|
||||
if ((double)ABS(temp1_double - temp2_double) > opts->delta) {
|
||||
opts->print_percentage = 0;
|
||||
print_pos(opts, elem_idx, 0);
|
||||
if (print_data(opts)) {
|
||||
@ -2163,7 +2163,7 @@ diff_ldouble_element(unsigned char *mem1, unsigned char *mem2, hsize_t elem_idx,
|
||||
}
|
||||
nfound++;
|
||||
}
|
||||
else if (per > opts->percent && ABS(temp1_double - temp2_double) > opts->delta) {
|
||||
else if (per > opts->percent && (double)ABS(temp1_double - temp2_double) > opts->delta) {
|
||||
opts->print_percentage = 1;
|
||||
print_pos(opts, elem_idx, 0);
|
||||
if (print_data(opts)) {
|
||||
|
Loading…
Reference in New Issue
Block a user