Browse Source

- minor fix (uint16 instead uint in loop), thanks to Nils F.

development
Andreas Romeyke 2 years ago
parent
commit
95e34abca1
  1. 2
      src/helper/check_tiffparse.c

2
src/helper/check_tiffparse.c

@ -133,7 +133,7 @@ int TIFFGetRawTagListIndex(ctiff_t * ctif, tag_t tag) { /* find n-th entry in IF
if (0 == count) { return -1; }
tag_t last = TIFFGetRawTagListEntry(ctif, 0);
ctif->tag_cache[last] = 0;
for (uint i= 1; i < count; i++) {
for (uint16 i= 1; i < count; i++) {
tag_t current = TIFFGetRawTagListEntry( ctif, i );
if (last >= current) {
ctif->tagorder=has_unsorted_tags;

Loading…
Cancel
Save