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