Skip to content

Commit

Permalink
stb_vorbis.h: fix gcc sign-compare warnings when building with -Wextra
Browse files Browse the repository at this point in the history
Fixes #614
  • Loading branch information
sezero committed May 23, 2024
1 parent ac8e852 commit 5a01fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codecs/stb_vorbis/stb_vorbis.h
Original file line number Diff line number Diff line change
Expand Up @@ -3766,7 +3766,7 @@ static int start_decoder(vorb *f)
f->comment_list = NULL;
if (f->comment_list_length > 0)
{
if (INT_MAX / sizeof(char*) < f->comment_list_length)
if (INT_MAX / (int)sizeof(char*) < f->comment_list_length)
goto no_comment;
len = sizeof(char*) * f->comment_list_length;
f->comment_list = (char**) setup_malloc(f, len);
Expand Down

0 comments on commit 5a01fae

Please sign in to comment.