Make nfields variable to be the size_t instead of uint32 in

TIFFMergeFieldInfo().
This commit is contained in:
Andrey Kiselev 2008-04-14 09:35:43 +00:00
parent 1bf045a2e1
commit 35b0e74065

View File

@ -1,4 +1,4 @@
/* $Id: tif_dirinfo.c,v 1.97 2007-09-24 06:40:15 joris Exp $ */
/* $Id: tif_dirinfo.c,v 1.98 2008-04-14 09:35:43 dron Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@ -814,7 +814,8 @@ TIFFMergeFieldInfo(TIFF* tif, const TIFFFieldInfo info[], uint32 n)
static const char module[] = "TIFFMergeFieldInfo";
static const char reason[] = "for fields array";
TIFFField *tp;
uint32 i, nfields;
size_t nfields;
uint32 i;
if (tif->tif_nfieldscompat > 0) {
tif->tif_fieldscompat = (TIFFFieldArray *)