aboutsummaryrefslogtreecommitdiffstats
path: root/src/riff.c
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2009-03-02 18:52:00 +0100
committerMax Kellermann <max@duempel.org>2009-03-02 18:59:59 +0100
commit57d836da495cf419326d4f89f294afc270bdc9a6 (patch)
tree47f2889d1839941d7ef6d6586d9c65c053195093 /src/riff.c
parent406b0403a5767387121875ab4b99de467492415f (diff)
downloadmpd-57d836da495cf419326d4f89f294afc270bdc9a6.tar.gz
mpd-57d836da495cf419326d4f89f294afc270bdc9a6.tar.xz
mpd-57d836da495cf419326d4f89f294afc270bdc9a6.zip
fixing unsigned to signed comparision
[mk: cast off_t to uint32_t; same fix for aiff.c]
Diffstat (limited to 'src/riff.c')
-rw-r--r--src/riff.c2
1 files changed, 1 insertions, 1 deletions
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;