File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -620,8 +620,10 @@ enum STBVorbisError
620
620
#include <limits.h>
621
621
622
622
#ifndef STB_FORCEINLINE
623
- #if defined(_MSC_VER )
623
+ #if defined(_MSC_VER ) && ( _MSC_VER >= 1200 )
624
624
#define STB_FORCEINLINE __forceinline
625
+ #elif defined(_MSC_VER )
626
+ #define STB_FORCEINLINE static __inline
625
627
#elif (defined(__GNUC__ ) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2 ))) || defined(__clang__ )
626
628
#define STB_FORCEINLINE static __inline __attribute__((always_inline))
627
629
#else
@@ -5518,7 +5520,7 @@ static int fixup_current_playback_loc(stb_vorbis *f, int n)
5518
5520
5519
5521
f -> current_playback_loc += n ;
5520
5522
lgs = stb_vorbis_stream_length_in_samples (f );
5521
- if (f -> current_playback_loc > lgs && lgs > 0 && lgs != SAMPLE_unknown ) {
5523
+ if (lgs != 0 && lgs != SAMPLE_unknown && f -> current_playback_loc > ( int ) lgs ) {
5522
5524
int r = n - (f -> current_playback_loc - (int )lgs );
5523
5525
f -> current_playback_loc = lgs ;
5524
5526
return r ;
You can’t perform that action at this time.
0 commit comments