Mercurial > hg > dmlib
changeset 1059:df35244490e8
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 02 Mar 2015 00:01:14 +0200 |
parents | e51ec592bfb6 |
children | 5006cfe66250 |
files | src/dmzlib.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dmzlib.c Sun Mar 01 23:28:40 2015 +0200 +++ b/src/dmzlib.c Mon Mar 02 00:01:14 2015 +0200 @@ -90,7 +90,7 @@ static int dmZLibBuildHuffmanTables(DMZHuffmanContext * ctx, const Uint8 * sizelist, const int num) { int i, k = 0; - int code, next_code[16], sizes[17]; + int code, nextCode[16], sizes[17]; memset(sizes, 0, sizeof(sizes)); memset(ctx->fast, 0, sizeof(ctx->fast)); @@ -111,7 +111,7 @@ code = 0; for (i = 1; i < 16; i++) { - next_code[i] = code; + nextCode[i] = code; ctx->firstCode[i] = (Uint16) code; ctx->firstSymbol[i] = (Uint16) k; code = (code + sizes[i]); @@ -133,7 +133,7 @@ int s = sizelist[i]; if (s) { - int c = next_code[s] - ctx->firstCode[s] + ctx->firstSymbol[s]; + int c = nextCode[s] - ctx->firstCode[s] + ctx->firstSymbol[s]; Uint16 fastv = (Uint16) ((s << 9) | i); ctx->size[c] = (Uint8) s; ctx->value[c] = (Uint16) i; @@ -146,7 +146,7 @@ k += (1 << s); } } - next_code[s]++; + nextCode[s]++; } }