diff options
author | Viliam Mateicka <viliam.mateicka@gmail.com> | 2009-03-02 18:52:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-02 18:59:59 +0100 |
commit | 57d836da495cf419326d4f89f294afc270bdc9a6 (patch) | |
tree | 47f2889d1839941d7ef6d6586d9c65c053195093 | |
parent | 406b0403a5767387121875ab4b99de467492415f (diff) | |
download | mpd-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]
-rw-r--r-- | src/aiff.c | 2 | ||||
-rw-r--r-- | src/riff.c | 2 |
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; |