stb_image: fix assert macro usage; stb_vorbis: changelog

This commit is contained in:
Sean Barrett
2018-01-29 13:15:10 -08:00
parent 476b4c7a72
commit dfff6f5e7c
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* stb_image - v2.17 - public domain image loader - http://nothings.org/stb
/* stb_image - v2.17b - public domain image loader - http://nothings.org/stb
no warranty implied; use at your own risk
Do this:
@ -5041,9 +5041,9 @@ static int stbi__shiftsigned(int v, int shift, int bits)
v <<= -shift;
else
v >>= shift;
assert(v >= 0 && v < 256);
STBI_ASSERT(v >= 0 && v < 256);
v >>= (8-bits);
assert(bits >= 0 && bits <= 8);
STBI_ASSERT(bits >= 0 && bits <= 8);
return (int) ((unsigned) v * mul_table[bits]) >> shift_table[bits];
}