tif_jpeg.c: fix warning added by previous commit (on 32bit builds)
This commit is contained in:
parent
dc3eab1cdf
commit
8bf7b73703
@ -1563,7 +1563,7 @@ JPEGDecodeRaw(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s)
|
|||||||
JSAMPLE *outptr = (JSAMPLE*)tmpbuf + clumpoffset;
|
JSAMPLE *outptr = (JSAMPLE*)tmpbuf + clumpoffset;
|
||||||
#else
|
#else
|
||||||
JSAMPLE *outptr = (JSAMPLE*)buf + clumpoffset;
|
JSAMPLE *outptr = (JSAMPLE*)buf + clumpoffset;
|
||||||
if (cc < (clumpoffset + (tmsize_t)samples_per_clump*(clumps_per_line-1) + hsamp)) {
|
if (cc < (tmsize_t)(clumpoffset + (tmsize_t)samples_per_clump*(clumps_per_line-1) + hsamp)) {
|
||||||
TIFFErrorExt(tif->tif_clientdata, "JPEGDecodeRaw",
|
TIFFErrorExt(tif->tif_clientdata, "JPEGDecodeRaw",
|
||||||
"application buffer not large enough for all data, possible subsampling issue");
|
"application buffer not large enough for all data, possible subsampling issue");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user