Browse Source

- fixed warning aboz comparing float and unsigned int

development
Andreas Romeyke 8 months ago
parent
commit
3fbed4f8e9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/tagrules/check_tag_has_value_in_range.c

+ 1
- 1
src/tagrules/check_tag_has_value_in_range.c View File

@ -98,7 +98,7 @@ ret_t check_tag_has_value_in_range(ctiff_t * ctif, tag_t tag, unsigned int a, un
if (ret.returncode != is_valid) return ret;
if (1 == found) {
float val = *valp;
if ((val >= a && val <= b )) {
if ((val >= (float) a && val <= (float) b )) {
ret.returncode=is_valid;
free( valp);
return ret;


Loading…
Cancel
Save