Cppcheck: Same value in both branches of ternary operator

This commit is contained in:
Shahram Najm 2023-01-15 15:03:59 +00:00
parent 0153260694
commit 8dd75a889a
1 changed files with 2 additions and 1 deletions

View File

@ -921,7 +921,8 @@ static int compare_values(grib_runtime_options* options, grib_handle* h1, grib_h
packingError1 = 0.0005;
packingError2 = 0.0005;
isangle = 1;
value_tolerance = packingError1 > packingError2 ? packingError1 : packingError2;
/* value_tolerance = packingError1 > packingError2 ? packingError1 : packingError2; */
value_tolerance = packingError1;
}
else if (!grib_inline_strcmp(name, "referenceValue")) {
packingError1 = 0;