summaryrefslogtreecommitdiff
path: root/src/compression/huffman.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-15 14:42:31 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-15 14:42:31 (GMT)
commit394e17a4088cc91ea12cf45ad801515de4ccbc68 (patch)
tree1e32d818b712be85c192f6d973bfa0cdd9bb483f /src/compression/huffman.c
parentba62d1b75275732e8604630d05bce4532ab1675b (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.c2
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;
contact: Jan Huwald // Impressum