projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updated construction of SWCSA
[SXSI/TextCollection.git]
/
swcsa
/
utils
/
huff.c
diff --git
a/swcsa/utils/huff.c
b/swcsa/utils/huff.c
index
b45a484
..
9d95da9
100755
(executable)
--- 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) { bitzero
2
(stream,ptr,d-W); ptr += d-W; d = W; }
while (d--)
{ if ((code >> d) & 1) bitset(stream,ptr);
else bitclean(stream,ptr);