Browse Source

- using fabsf() instead fabs(), because float

development
Andreas Romeyke 2 years ago
parent
commit
4f66bdfb1d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/helper/check_tiffparse.c

+ 1
- 1
src/helper/check_tiffparse.c View File

@ -157,7 +157,7 @@ ret_t check_tag_has_fvalue(ctiff_t * ctif, tag_t tag, float value) {
ret =TIFFGetFieldRATIONAL(ctif, tag, &valp, &found);
if (1 == found) {
float val = * valp;
if ( fabs(val - value) < 0.01 ) {
if ( fabsf(val - value) < 0.01 ) {
ret.returncode=is_valid;
return ret;
} else {


Loading…
Cancel
Save