Mercurial > hg > dmlib
diff src/dmzlib.c @ 955:6b2f41844580
Cosmetic cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Feb 2015 01:03:18 +0200 |
parents | 88cbea0ee9b5 |
children | 985225a93aeb |
line wrap: on
line diff
--- a/src/dmzlib.c Thu Feb 26 19:06:32 2015 +0200 +++ b/src/dmzlib.c Fri Feb 27 01:03:18 2015 +0200 @@ -347,11 +347,13 @@ if (!stbi__zbuild_huffman(&z_codelength, codelength_sizes, 19)) return 0; + n = 0; while (n < hlit + hdist) { int c = stbi__zhuffman_decode(a, &z_codelength); STBI_ASSERT(c >= 0 && c < 19); + if (c < 16) lencodes[n++] = (Uint8) c; else