fix build with llvm22, thanks to tb@ who figured this out

This commit is contained in:
thfr
2026-05-31 00:20:42 +00:00
parent eca8480864
commit e849eb71f5
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ ONLY_FOR_ARCHS = ${MONO_ARCHS}
COMMENT = additional libraries for running games with fnaify
V = 0.1
DISTNAME = fnaify-extralibs-${V}
REVISION = 0
SHARED_LIBS += SDL2_image_compact 0.0 # 0.0
SHARED_LIBS += atomstb 0.0 # 0.0
@@ -0,0 +1,12 @@
Index: AZSNotSFML/atomstb/stb_vorbis.c
--- AZSNotSFML/atomstb/stb_vorbis.c.orig
+++ AZSNotSFML/atomstb/stb_vorbis.c
@@ -1363,7 +1363,7 @@ static int set_file_offset(stb_vorbis *f, unsigned int
#endif
f->eof = 0;
if (USE_MEMORY(f)) {
- if (f->stream_start + loc >= f->stream_end || f->stream_start + loc < f->stream_start) {
+ if (f->stream_start + loc >= f->stream_end) {
f->stream = f->stream_end;
f->eof = 1;
return 0;