- [FIX] Ara sí, acallat el warning tautològic de clang

This commit is contained in:
2026-05-14 08:38:53 +02:00
parent 27c122f5bb
commit 7ada99f766
2 changed files with 3 additions and 8 deletions
+3 -2
View File
@@ -1401,12 +1401,13 @@ static int set_file_offset(stb_vorbis *f, unsigned int loc)
#endif #endif
f->eof = 0; f->eof = 0;
if (USE_MEMORY(f)) { 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->stream = f->stream_end;
f->eof = 1; f->eof = 1;
return 0; return 0;
} else { } else {
f->stream = f->stream_start + loc; f->stream = pos;
return 1; return 1;
} }
} }
-6
View File
@@ -1,13 +1,7 @@
#ifndef JA_USESDLMIXER #ifndef JA_USESDLMIXER
#include "jail_audio.h" #include "jail_audio.h"
// PA QUE CLANG NO RENEGUE
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#include "external/stb_vorbis.h" #include "external/stb_vorbis.h"
#pragma clang diagnostic pop
// PA QUE CLANG NO RENEGUE
#include "other/log.h" #include "other/log.h"
#include <SDL3/SDL.h> #include <SDL3/SDL.h>