diff --git a/stb_image.h b/stb_image.h index cb0c5e9..140a150 100644 --- a/stb_image.h +++ b/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; diff --git a/stb_vorbis.c b/stb_vorbis.c index ef346fc..4920eb6 100644 --- a/stb_vorbis.c +++ b/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