fixing unsigned to signed comparision

[mk: cast off_t to uint32_t; same fix for aiff.c]
This commit is contained in:
Viliam Mateicka 2009-03-02 18:52:00 +01:00 committed by Max Kellermann
parent 406b0403a5
commit 57d836da49
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;