aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/aiff.c2
-rw-r--r--src/riff.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/aiff.c b/src/aiff.c
index 768e99373..71a9a2e08 100644
--- a/src/aiff.c
+++ b/src/aiff.c
@@ -70,7 +70,7 @@ aiff_seek_id3(FILE *file)
size = fread(&header, sizeof(header), 1, file);
if (size != 1 ||
memcmp(header.id, "FORM", 4) != 0 ||
- GUINT32_FROM_BE(header.size) > st.st_size ||
+ GUINT32_FROM_BE(header.size) > (uint32_t)st.st_size ||
memcmp(header.format, "AIFF", 4) != 0)
/* not a AIFF file */
return 0;
diff --git a/src/riff.c b/src/riff.c
index 4be96ac06..1cfdcaf99 100644
--- a/src/riff.c
+++ b/src/riff.c
@@ -70,7 +70,7 @@ riff_seek_id3(FILE *file)
size = fread(&header, sizeof(header), 1, file);
if (size != 1 ||
memcmp(header.id, "RIFF", 4) != 0 ||
- GUINT32_FROM_LE(header.size) > st.st_size)
+ GUINT32_FROM_LE(header.size) > (uint32_t)st.st_size)
/* not a RIFF file */
return 0;