Updated construction of SWCSA
[SXSI/TextCollection.git] / swcsa / utils / huff.c
index b45a484..9d95da9 100755 (executable)
@@ -166,7 +166,7 @@ int encodeHuff (THuff H, uint symb, uint *stream, uint ptr)
          pos -= H.num[d--];
        }
      code += pos;
-     if (d > W) { bitzero(stream,ptr,d-W); ptr += d-W; d = W; }
+     if (d > W) { bitzero2(stream,ptr,d-W); ptr += d-W; d = W; }
      while (d--)
         { if ((code >> d) & 1) bitset(stream,ptr);
          else bitclean(stream,ptr);