src/file_jpg.c: replace unsigned by unsigned int

This commit is contained in:
Christophe Grenier 2018-02-07 18:46:11 +01:00
parent 6282a476ef
commit 9e2f1a6801

View file

@ -1372,7 +1372,7 @@ struct sof_header
unsigned char data[0];
} __attribute__ ((gcc_struct, __packed__));
static int jpg_check_sof0(const unsigned char *buffer, const unsigned int buffer_size, const unsigned i)
static int jpg_check_sof0(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int i)
{
const struct sof_header *h=(const struct sof_header *)&buffer[i];
if(i+4 > buffer_size)