diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-10-15 14:42:31 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-10-15 14:42:31 (GMT) |
commit | 394e17a4088cc91ea12cf45ad801515de4ccbc68 (patch) | |
tree | 1e32d818b712be85c192f6d973bfa0cdd9bb483f /src/compression/huffman.c | |
parent | ba62d1b75275732e8604630d05bce4532ab1675b (diff) |
Specifically typed min and max functions.
Explicitly compare signed and unsigned in many places to avoid
warnings.
Diffstat (limited to 'src/compression/huffman.c')
-rw-r--r-- | src/compression/huffman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compression/huffman.c b/src/compression/huffman.c index b8926ac..8f98755 100644 --- a/src/compression/huffman.c +++ b/src/compression/huffman.c @@ -440,7 +440,7 @@ void Ptngc_comp_conv_to_huffman(unsigned int *vals, int nvals, int ihave=0; int j; for (j=0; j<ndict; j++) - if (codelength[j].dict==i) + if (codelength[j].dict==(unsigned int)i) { ihave=1; |