X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjpeg%2Fljpg%2Fhuffd.c;h=1b60b4a2fbf6ffd4d88c5753b346c2b55baf2105;hb=8ac4df8c7543a827c7b89fc9bbcf86625f3c1afe;hp=89803a0f022092f47ad72a74766afbeea6bf3b6a;hpb=1ce3c187fd42db21539066a0ec8df1599e16eba2;p=gdcm.git 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]; \ }