fixing unsigned to signed comparision
[mk: cast off_t to uint32_t; same fix for aiff.c]
This commit is contained in:
parent
406b0403a5
commit
57d836da49
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user