Skip to content

Commit

Permalink
Avoid unnecessary dependence on fixed-length types.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Oct 2, 2016
1 parent 86cbfcd commit 9486b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pigz.c
Expand Up @@ -1054,7 +1054,7 @@ local void put_trailer(unsigned long ulen, unsigned long clen,
PUT4L(tail + 8, clen);
PUT4L(tail + 12, ulen);
writen(g.outd, tail, 16);
if (clen > UINT32_MAX || ulen > UINT32_MAX)
if (clen > 0xffffffff || ulen > 0xffffffff)
complain("4 GiB or greater length: %s will be unusable", g.outf);

/* write central file header */
Expand Down Expand Up @@ -3207,7 +3207,7 @@ local void infchk(void)

/* Type for accumulating bits. 23 bits will be used to accumulate up to 16-bit
symbols. */
typedef uint32_t bits_t;
typedef unsigned long bits_t;

#define NOMORE() (g.in_left == 0 && (g.in_eof || load() == 0))
#define NEXT() (g.in_left--, *g.in_next++)
Expand Down

0 comments on commit 9486b45

Please sign in to comment.