From 7ada99f7662f5170d4b047c9c1e75abb8e16f5a8 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 14 May 2026 08:38:53 +0200 Subject: [PATCH] =?UTF-8?q?-=20[FIX]=20Ara=20s=C3=AD,=20acallat=20el=20war?= =?UTF-8?q?ning=20tautol=C3=B2gic=20de=20clang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/external/stb_vorbis.h | 5 +++-- source/mini/audio/jail_audio.cpp | 6 ------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/source/external/stb_vorbis.h b/source/external/stb_vorbis.h index 7e5daa3..2eaa728 100644 --- a/source/external/stb_vorbis.h +++ b/source/external/stb_vorbis.h @@ -1401,12 +1401,13 @@ static int set_file_offset(stb_vorbis *f, unsigned int loc) #endif f->eof = 0; if (USE_MEMORY(f)) { - if (f->stream_start + loc >= f->stream_end || f->stream_start + loc < f->stream_start) { + uint8_t *pos = f->stream_start + loc; + if (pos >= f->stream_end || pos < f->stream_start) { f->stream = f->stream_end; f->eof = 1; return 0; } else { - f->stream = f->stream_start + loc; + f->stream = pos; return 1; } } diff --git a/source/mini/audio/jail_audio.cpp b/source/mini/audio/jail_audio.cpp index 43b86af..961511a 100644 --- a/source/mini/audio/jail_audio.cpp +++ b/source/mini/audio/jail_audio.cpp @@ -1,13 +1,7 @@ #ifndef JA_USESDLMIXER #include "jail_audio.h" -// PA QUE CLANG NO RENEGUE -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wtautological-compare" #include "external/stb_vorbis.h" -#pragma clang diagnostic pop -// PA QUE CLANG NO RENEGUE - #include "other/log.h" #include