(stb_image.h) Fix warning

This commit is contained in:
twinaphex 2015-06-28 16:34:30 +02:00
parent 34fc48b43a
commit 63d5965199

View File

@ -731,7 +731,7 @@ static INLINE int stbi__extend_receive(stbi__jpeg *j, int n)
sgn = (int32_t)j->code_buffer >> 31;
k = stbi_lrot(j->code_buffer, n);
STBI_ASSERT(n >= 0 && n < sizeof(stbi__bmask)/sizeof(*stbi__bmask));
STBI_ASSERT((n >= 0) && ((unsigned)n < sizeof(stbi__bmask)/sizeof(*stbi__bmask)));
j->code_buffer = k & ~stbi__bmask[n];
k &= stbi__bmask[n];
j->code_bits -= n;