From ec9db6f84b39988a6a3375058e97598fe63fca4e Mon Sep 17 00:00:00 2001 From: sammyhw Date: Thu, 15 Dec 2016 23:49:19 -0500 Subject: [PATCH] allow for all 16 bits --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index 345e406..025cf3b 100644 --- a/stb_image.h +++ b/stb_image.h @@ -5719,7 +5719,7 @@ static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req // Fill this channel with default data. if (bitdepth == 16 && bpc == 16) { stbi__uint16 *q = ((stbi__uint16 *) out) + channel; - stbi_uc val = channel == 3 ? 65535 : 0; + stbi__uint16 val = channel == 3 ? 65535 : 0; for (i = 0; i < pixelCount; i++, q += 4) *q = val; } else {