Skip to content
Myr

fix non-fastpath BMP pixels with bit 31 set when asserts are on

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent d85e594 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:stb_image.h+1 added-1 removed
5028 unmodified lines
50295030// extract an arbitrarily-aligned N-bit value (N=bits)5031// from v, and then make it 8-bits long and fractionally5032// extend it to full full range.5033static int stbi__shiftsigned(int v, int shift, int bits)5033static int stbi__shiftsigned(unsigned int v, int shift, int bits)5034{5035 static unsigned int mul_table[9] = {5036 0,5037 0xff/*0b11111111*/, 0x55/*0b01010101*/, 0x49/*0b01001001*/, 0x11/*0b00010001*/,
2425 unmodified lines