1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

lib-src/libmad: fix warning...

... comparing enum to int value that means invalid
This commit is contained in:
Paul Licameli 2018-11-13 08:33:49 -05:00
parent 03af971f8e
commit a05812f7ed

View File

@ -144,7 +144,7 @@ int decode_header(struct mad_header *header, struct mad_stream *stream)
/* layer */
header->layer = 4 - mad_bit_read(&stream->ptr, 2);
if (header->layer == 4) {
if ((int)header->layer == 4) {
stream->error = MAD_ERROR_BADLAYER;
return -1;
}