From: malaterre Date: Sun, 12 Sep 2004 02:08:10 +0000 (+0000) Subject: FIX: Some warnings X-Git-Tag: Version0.6.bp~211 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=1ce3c187fd42db21539066a0ec8df1599e16eba2;p=gdcm.git FIX: Some warnings --- diff --git a/src/jpeg/ljpg/huffd.c b/src/jpeg/ljpg/huffd.c index 92e34562..89803a0f 100644 --- a/src/jpeg/ljpg/huffd.c +++ b/src/jpeg/ljpg/huffd.c @@ -5,7 +5,7 @@ * software */ /* - * $Id: huffd.c,v 1.3 2004/08/18 02:26:08 malaterre Exp $ + * $Id: huffd.c,v 1.4 2004/09/12 02:08:10 malaterre Exp $ */ #include #include @@ -16,11 +16,10 @@ #include "proto.h" #include "predict.h" - #define RST0 0xD0 /* RST0 marker code */ static long getBuffer; /* current bit-extraction buffer */ -static int bitsLeft; /* # of unused bits in it */ +static unsigned int bitsLeft; /* # of unused bits in it */ /* * The following variables keep track of the input buffer @@ -111,7 +110,7 @@ static int bmask[] = {0x0000, } #define get_bits(nbits,rv) { \ - if (bitsLeft < nbits) FillBitBuffer(nbits); \ + if (bitsLeft < (unsigned)nbits) FillBitBuffer(nbits); \ rv = ((getBuffer >> (bitsLeft -= (nbits)))) & bmask[nbits]; \ }