mirror of https://github.com/nothings/stb.git
fix non-fastpath BMP pixels with bit 31 set when asserts are on
This commit is contained in:
parent
d85e594654
commit
061422f580
|
@ -5030,7 +5030,7 @@ static int stbi__bitcount(unsigned int a)
|
||||||
// extract an arbitrarily-aligned N-bit value (N=bits)
|
// extract an arbitrarily-aligned N-bit value (N=bits)
|
||||||
// from v, and then make it 8-bits long and fractionally
|
// from v, and then make it 8-bits long and fractionally
|
||||||
// extend it to full full range.
|
// extend it to full full range.
|
||||||
static int stbi__shiftsigned(int v, int shift, int bits)
|
static int stbi__shiftsigned(unsigned int v, int shift, int bits)
|
||||||
{
|
{
|
||||||
static unsigned int mul_table[9] = {
|
static unsigned int mul_table[9] = {
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in New Issue