Skip to content

Commit 90c6116

Browse files
committed
Fix warning on gcc
1 parent 992056e commit 90c6116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastimage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ static void fastimageReadIco(const fastimage_reader_t *reader, unsigned char *si
544544

545545
if(reader->read(reader->context, 10, header+4) != 10) goto ICO_ERROR;
546546

547-
if(!header[4] && !header[5] || header[9]) goto ICO_ERROR;
547+
if((!header[4] && !header[5]) || header[9]) goto ICO_ERROR; // Number of images should be greater than 0, Reserved should be 0
548548

549549
image->width = header[6];
550550
if(!image->width) image->width = 256;

0 commit comments

Comments
 (0)