summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-12-01 17:43:40 +0100
committerKim Woelders <kim@woelders.dk>2021-12-02 18:10:18 +0100
commit84343e5a619360e6f12c90a23be064fba9385f0b (patch)
tree11ecd30a29ae1b34dccf3cceab9d649fbc77dcd9
parent5627edbb76f6eafd8914aed49129816256827967 (diff)
downloadimlib2-84343e5a619360e6f12c90a23be064fba9385f0b.tar.gz
Avoid signedness warning
-rw-r--r--src/modules/loaders/exif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/loaders/exif.c b/src/modules/loaders/exif.c
index d0b9245..8be79f7 100644
--- a/src/modules/loaders/exif.c
+++ b/src/modules/loaders/exif.c
@@ -61,7 +61,7 @@ tiff_parse_ifd(int lvl, const unsigned char *p, unsigned int len,
D("%s: len=%x(%d)\n", __func__, len, len);
- if (pp + 2 - p > len)
+ if (pp + 2 - p > (int)len)
{
D("Bad IFD offset\n");
return;
@@ -72,7 +72,7 @@ tiff_parse_ifd(int lvl, const unsigned char *p, unsigned int len,
for (iifd = 0; iifd < nifd; iifd++, pp += 12)
{
- if (pp + 12 - p > len)
+ if (pp + 12 - p > (int)len)
{
D("Bad offset, break\n");
return;