]> Creatis software - gdcm.git/commitdiff
COMP: Specify we are using long, should get rid of the warning
authormalaterre <malaterre>
Thu, 9 Jun 2005 21:27:18 +0000 (21:27 +0000)
committermalaterre <malaterre>
Thu, 9 Jun 2005 21:27:18 +0000 (21:27 +0000)
src/gdcmjpegls/Decoder/bitio.c

index cc0d73729236a5f237a6f5e1a62c4ca0ac71b9af..6309f20af79132b4d579cd873e7f6d5ada725595 100644 (file)
@@ -187,11 +187,11 @@ void bitiflush()  {
     }
     discard = filled-k;
     if ( treg != (reg<<discard) ) {
-      fprintf(stderr,"bitiflush: inconsistent bits=%d discard=%d reg=%08x treg=%08x\n",bits, discard, reg, treg);
+      fprintf(stderr,"bitiflush: inconsistent bits=%d discard=%d reg=%08lx treg=%08x\n",bits, discard, reg, treg);
       exit(10);
     }
     if ( reg & (((1<<discard)-1)<<(BITBUFSIZE-discard)) )
-      fprintf(stderr,"bitiflush: Warning: discarding nonzero bits; reg=%08x bits=%d discard=%d\n",reg,bits,discard);
+      fprintf(stderr,"bitiflush: Warning: discarding nonzero bits; reg=%08lx bits=%d discard=%d\n",reg,bits,discard);
 
     fp -= dbytes;  /* do the unget */
     if ( buff[fp-1]==0xff && buff[fp]==0 ) fp++;