Opened 15 years ago

Last modified 15 years ago

#845 closed defect (fixed)

TIFFCvtNativeToIEEEDouble Call Wrong

Reported by: warmerdam Owned by: dron
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords: GDAL
Cc:

Description

If HAVE_IEEEFP is not defined, the following does not compile (in tif_dirwrite.c):

static int
TIFFWriteDoubleArray(TIFF* tif, TIFFDirEntry* dir, double* v)
{
	TIFFCvtNativeToIEEEDouble(tif, n, v);
	return (TIFFWriteData(tif, dir, (char*) v));
}

lib/tif_dirwrite.c: In function `TIFFWriteNormalTag':
lib/tif_dirwrite.c:584: warning: implicit declaration of function `strlen'
lib/tif_dirwrite.c: In function `TIFFWriteDoubleArray':
lib/tif_dirwrite.c:887: error: `n' undeclared (first use in this function)
lib/tif_dirwrite.c:887: error: (Each undeclared identifier is reported only once
lib/tif_dirwrite.c:887: error: for each function it appears in.)
make: *** [lib/tif_dirwrite.o] Error 1

The problem seems to be with "n" and I suspect the call needs to be redone
more like the corresponding call in TIFFWriteFloatArray().

Change History (1)

comment:1 Changed 15 years ago by dron

Frank,  I think that is right solution, fixed.  Andrey
Note: See TracTickets for help on using tickets.