summaryrefslogtreecommitdiff
path: root/src/libexif
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexif')
-rw-r--r--src/libexif/exif-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexif/exif-loader.c b/src/libexif/exif-loader.c
index 4e5b140..c62dcc8 100644
--- a/src/libexif/exif-loader.c
+++ b/src/libexif/exif-loader.c
@@ -270,7 +270,7 @@ exif_loader_write (ExifLoader *eld, unsigned char *buf, unsigned int len)
default:
switch (eld->b[i]) {
case JPEG_MARKER_APP1:
- if (!memcmp (eld->b + i + 3, ExifHeader, MIN((ssize_t)(sizeof(ExifHeader)), MAX(0, ((ssize_t)(sizeof(eld->b))) - ((ssize_t)i) - 3)))) {
+ if (!memcmp (eld->b + i + 3, ExifHeader, MIN((size_t)(sizeof(ExifHeader)), MAX(0, ((size_t)(sizeof(eld->b))) - ((size_t)i) - 3)))) {
eld->data_format = EL_DATA_FORMAT_EXIF;
} else {
eld->data_format = EL_DATA_FORMAT_JPEG; /* Probably JFIF - keep searching for APP1 EXIF*/