Commit 8f7b98fe authored by Ken Martin's avatar Ken Martin
Browse files

warning fix

parent 6c76c167
......@@ -485,7 +485,7 @@ Fax3SetupState(TIFF* tif)
if (sp->rw_mode == O_RDONLY) { /* 1d/2d decoding */
Fax3DecodeState* dsp = DecoderState(tif);
uint32 nruns = needsRefLine ?
2*TIFFroundup(rowpixels,32) : rowpixels;
2*TIFFroundup(rowpixels,32) : (uint32)rowpixels;
dsp->runs = (uint32*) _TIFFmalloc((2*nruns+3)*sizeof (uint32));
if (dsp->runs == NULL) {
......
......@@ -213,7 +213,7 @@ uIntf *v; /* working area: values in order of bit length */
/* compute minimum size table less than or equal to l bits */
z = g - w;
z = z > (uInt)l ? l : z; /* table size upper limit */
z = z > (uInt)l ? (uInt)l : z; /* table size upper limit */
if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */
{ /* too few codes for k-w bit table */
f -= a + 1; /* deduct codes from patterns left */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment