- [FIX] Ara sí, acallat el warning tautològic de clang
This commit is contained in:
1 parent
27c122f5bb
commit
7ada99f766
2 files changed
+3
-8
No files matched your search
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