From f58a6727ea1316f4db6f2ef7c702dc837bff67ef Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 23 May 2024 04:15:50 +0300
Subject: [PATCH] stb_vorbis.h: fix gcc sign-compare warnings when building
with -Wextra
Fixes https://github.com/libsdl-org/SDL_mixer/issues/614
(cherry picked from commit 5a01faed1c70eb055d59992642528f83bc0a46e4)
---
src/codecs/stb_vorbis/stb_vorbis.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/codecs/stb_vorbis/stb_vorbis.h b/src/codecs/stb_vorbis/stb_vorbis.h
index 8686bdf86..81c13cd1a 100644
--- a/src/codecs/stb_vorbis/stb_vorbis.h
+++ b/src/codecs/stb_vorbis/stb_vorbis.h
@@ -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);