From 061422f5808b1e577be711304ece8c28bc50275e Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 7 Feb 2019 04:39:51 -0800 Subject: [PATCH] fix non-fastpath BMP pixels with bit 31 set when asserts are on --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index d9c21bc..6ad965e 100644 --- a/stb_image.h +++ b/stb_image.h @@ -5030,7 +5030,7 @@ static int stbi__bitcount(unsigned int a) // extract an arbitrarily-aligned N-bit value (N=bits) // from v, and then make it 8-bits long and fractionally // 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] = { 0,