diff options
author | Sam Leffler <sam@engr.sgi.com> | 1996-06-10 22:24:41 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@codelibre.net> | 2022-06-22 19:38:01 +0100 |
commit | 773e971189d30b0603751845b31c66b62fc913a7 (patch) | |
tree | d115d7236e300767d0706d5672a2487acc43d224 /libtiff/tif_fax3.h | |
parent | 717c3420db282530d388682c1c63c4f2e9daae13 (diff) | |
download | libtiff-git-773e971189d30b0603751845b31c66b62fc913a7.tar.gz |
v3.4beta035 releasev3.4beta035
Diffstat (limited to 'libtiff/tif_fax3.h')
-rw-r--r-- | libtiff/tif_fax3.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libtiff/tif_fax3.h b/libtiff/tif_fax3.h index 9a9817c9..33d41760 100644 --- a/libtiff/tif_fax3.h +++ b/libtiff/tif_fax3.h @@ -1,4 +1,4 @@ -/* $Header: /usr/people/sam/tiff/libtiff/RCS/tif_fax3.h,v 1.30 1996/05/10 14:45:33 sam Exp $ */ +/* $Header: /usr/people/sam/tiff/libtiff/RCS/tif_fax3.h,v 1.31 1996/06/04 19:04:41 sam Exp $ */ /* * Copyright (c) 1990-1996 Sam Leffler @@ -141,7 +141,7 @@ extern const TIFFFaxTabEnt TIFFFaxBlackTable[]; goto eoflab; \ BitsAvail = (n); /* pad with zeros */ \ } else { \ - BitAcc |= bitmap[*cp++]<<BitsAvail; \ + BitAcc |= ((uint32) bitmap[*cp++])<<BitsAvail; \ BitsAvail += 8; \ } \ } \ @@ -155,13 +155,13 @@ extern const TIFFFaxTabEnt TIFFFaxBlackTable[]; goto eoflab; \ BitsAvail = (n); /* pad with zeros */ \ } else { \ - BitAcc |= bitmap[*cp++]<<BitsAvail; \ + BitAcc |= ((uint32) bitmap[*cp++])<<BitsAvail; \ if ((BitsAvail += 8) < (n)) { \ if (EndOfData()) { \ /* NB: we know BitsAvail is non-zero here */ \ BitsAvail = (n); /* pad with zeros */ \ } else { \ - BitAcc |= bitmap[*cp++]<<BitsAvail; \ + BitAcc |= ((uint32) bitmap[*cp++])<<BitsAvail; \ BitsAvail += 8; \ } \ } \ |