From: malaterre Date: Sun, 12 Sep 2004 02:48:23 +0000 (+0000) Subject: FIX: put back everything since I broke tests, warnings should be discarded -apparently- X-Git-Tag: Version0.6.bp~210 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=16427285cc469276c1664a3e0f69867c59342e32;p=gdcm.git FIX: put back everything since I broke tests, warnings should be discarded -apparently- --- diff --git a/src/jpeg/ljpg/huffd.c b/src/jpeg/ljpg/huffd.c index 89803a0f..1b60b4a2 100644 --- a/src/jpeg/ljpg/huffd.c +++ b/src/jpeg/ljpg/huffd.c @@ -5,7 +5,7 @@ * software */ /* - * $Id: huffd.c,v 1.4 2004/09/12 02:08:10 malaterre Exp $ + * $Id: huffd.c,v 1.5 2004/09/12 02:48:23 malaterre Exp $ */ #include #include @@ -19,7 +19,7 @@ #define RST0 0xD0 /* RST0 marker code */ static long getBuffer; /* current bit-extraction buffer */ -static unsigned int bitsLeft; /* # of unused bits in it */ +static int bitsLeft; /* # of unused bits in it */ /* * The following variables keep track of the input buffer @@ -110,7 +110,7 @@ static int bmask[] = {0x0000, } #define get_bits(nbits,rv) { \ - if (bitsLeft < (unsigned)nbits) FillBitBuffer(nbits); \ + if (bitsLeft < nbits) FillBitBuffer(nbits); \ rv = ((getBuffer >> (bitsLeft -= (nbits)))) & bmask[nbits]; \ }