- [FIX] Ara sí, acallat el warning tautològic de clang
This commit is contained in:
Vendored
+3
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user