X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=swcsa%2Futils%2Fhuff.c;h=9d95da9794fc01efc82959ce5b4574d76936989a;hb=443151511a86083b21c1c06eb610f86b3aed35be;hp=b45a48404de50420968047c681652562e6360c43;hpb=102e33b134075765e6d4e0c38bc1307568ce5602;p=SXSI%2FTextCollection.git diff --git a/swcsa/utils/huff.c b/swcsa/utils/huff.c index b45a484..9d95da9 100755 --- a/swcsa/utils/huff.c +++ b/swcsa/utils/huff.c @@ -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);