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:
H. Joe Lee 2021-10-06 16:25:40 -05:00 committed by GitHub
parent 52cb2833de
commit e2cdb618ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {