changeset 1077:7bf421248190

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 02 Mar 2015 04:47:03 +0200
parents 21b0aedb7b5c
children a3ef48c7e9d3
files src/dmzlib.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmzlib.c	Mon Mar 02 04:46:34 2015 +0200
+++ b/src/dmzlib.c	Mon Mar 02 04:47:03 2015 +0200
@@ -114,7 +114,7 @@
         nextCode[i] = code;
         ctx->firstCode[i] = (Uint16) code;
         ctx->firstSymbol[i] = (Uint16) k;
-        code = (code + sizes[i]);
+        code += sizes[i];
 
         if (sizes[i] && code - 1 >= (1 << i))
         {
@@ -239,6 +239,7 @@
         return DMERR_OK;
     }
 
+    // Not resolved by fast table, so compute it the slow way
     return dmZLibHuffmanDecodeSlow(ctx, huff, val);
 }