Skip to content
Myr

fix compiler warnings

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 9b2522c · Browse files · 1 file+4 added−3 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+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:stb_image.h+4 added-3 removed
1748 unmodified lines
1749} stbi__jpeg;17501751static int stbi__build_huffman(stbi__huffman *h, int *count)1752{1753 int i,j,k=0,code;1753 int i,j,k=0;1754 unsigned int code;1755 // build size list for each symbol (from JPEG spec)1756 for (i=0; i < 16; ++i)1757 for (j=0; j < count[i]; ++j)1758 h->size[k++] = (stbi_uc) (i+1);
398 unmodified lines
2157 return (stbi_uc) x;2158}21592160#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5)))2160#define stbi__fsh(x) ((x) << 12)2161#define stbi__fsh(x) ((x) * 4096)21622163// derived from jidctint -- DCT_ISLOW2164#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \2165 int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; \
2554 unmodified lines
4720 }4721 }4722}47234723#define STBI__PNG_TYPE(a,b,c,d) (((a) << 24) + ((b) << 16) + ((c) << 8) + (d))4724#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d))47254726static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)4727{4728 stbi_uc palette[1024], pal_img_n=0;
2727 unmodified lines