2
0
Эх сурвалжийг харах

Merge branch 'master' of https://github.com/nguillemot/stb

Sean Barrett 10 жил өмнө
parent
commit
8f9c8b682d
2 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 1 1
      stb_image.h
  2. 1 1
      stb_vorbis.c

+ 1 - 1
stb_image.h

@@ -1645,7 +1645,7 @@ stbi_inline static int stbi__extend_receive(stbi__jpeg *j, int n)
 
    sgn = (stbi__int32)j->code_buffer >> 31; // sign bit is always in MSB
    k = stbi_lrot(j->code_buffer, n);
-   STBI_ASSERT(n >= 0 && n < sizeof(stbi__bmask)/sizeof(*stbi__bmask));
+   STBI_ASSERT(n >= 0 && n < (int) (sizeof(stbi__bmask)/sizeof(*stbi__bmask)));
    j->code_buffer = k & ~stbi__bmask[n];
    k &= stbi__bmask[n];
    j->code_bits -= n;

+ 1 - 1
stb_vorbis.c

@@ -553,7 +553,7 @@ enum STBVorbisError
 #define NULL 0
 #endif
 
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !(defined(__MINGW32__) && defined(__forceinline))
    #if __GNUC__
       #define __forceinline inline
    #else