AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 1997

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



1997.01.12 00:55 "Small bug report.", by Adam Jenkins

Hi,
	This concerns a bug in libtiff v3.4beta035.  Apologies if this
has already been fixed. 

In the file tif_dirwrite.c, in function TIFFWriteRationalArray, there
is the following warning message.

TIFFWriteRationalArray(TIFF* tif,
    TIFFDataType type, ttag_t tag, TIFFDirEntry* dir, uint32 n, float* v)
{
... code removed ...
        for (i = 0; i < n; i++) {
                float fv = v[i];
		... more stuff removed ...
                if (fv < 0) {
                        if (type == TIFF_RATIONAL) {
                                TIFFWarning(tif->tif_name,
        "\"%s\": Information lost writing value (%g) as (unsigned) RATIONAL",
                                _TIFFFieldWithTag(tif,tag)->field_name, v);
                                                                       ^^^
... rest removed ...
}

The "v" in the TIFFWarning call is a (float *), but it should be a
(float).  It looks like this should be "fv" instead.

Adam