From 7e7608cbdef2a5f9df202d1e241b5b18a34e82db Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 17 Dec 2020 21:27:44 +1100 Subject: [PATCH] docs: fix simple typo, guarante -> guarantee There is a small typo in src/stb_image.h. Should read `guarantee` rather than `guarante`. --- src/stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stb_image.h b/src/stb_image.h index d0fa9c2..b9ccf11 100644 --- a/src/stb_image.h +++ b/src/stb_image.h @@ -4064,7 +4064,7 @@ static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 r stbi_uc *cur = a->out + stride*j; stbi_uc *in = a->out + stride*j + x*out_n - img_width_bytes; // unpack 1/2/4-bit into a 8-bit buffer. allows us to keep the common 8-bit path optimal at minimal cost for 1/2/4-bit - // png guarante byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that will be skipped in the later loop + // png guarantee byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that will be skipped in the later loop stbi_uc scale = (color == 0) ? stbi__depth_scale_table[depth] : 1; // scale grayscale values to 0..255 range // note that the final byte might overshoot and write more data than desired.