diff options
Diffstat (limited to 'src/compression/huffman.c')
-rw-r--r-- | src/compression/huffman.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compression/huffman.c b/src/compression/huffman.c index bd0a15c..77660fc 100644 --- a/src/compression/huffman.c +++ b/src/compression/huffman.c @@ -58,9 +58,9 @@ static int comp_htree(const void *leafptr1, const void *leafptr2, const void *pr { const union htree_nodeleaf *leaf1=(union htree_nodeleaf *)leafptr1; const union htree_nodeleaf *leaf2=(union htree_nodeleaf *)leafptr2; - (void)private; - int rval=0; + (void)private; + if (leaf1->leaf.prob<leaf2->leaf.prob) rval=1; else if (leaf1->leaf.prob>leaf2->leaf.prob) |