Skip to content

Commit 5a01fae

Browse files
committed
stb_vorbis.h: fix gcc sign-compare warnings when building with -Wextra
Fixes #614
1 parent ac8e852 commit 5a01fae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codecs/stb_vorbis/stb_vorbis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3766,7 +3766,7 @@ static int start_decoder(vorb *f)
37663766
f->comment_list = NULL;
37673767
if (f->comment_list_length > 0)
37683768
{
3769-
if (INT_MAX / sizeof(char*) < f->comment_list_length)
3769+
if (INT_MAX / (int)sizeof(char*) < f->comment_list_length)
37703770
goto no_comment;
37713771
len = sizeof(char*) * f->comment_list_length;
37723772
f->comment_list = (char**) setup_malloc(f, len);

0 commit comments

Comments
 (0)