summaryrefslogtreecommitdiff
path: root/src/libtiff/tif_dirread.c
diff options
context:
space:
mode:
authorscuri <scuri>2009-12-11 15:17:41 +0000
committerscuri <scuri>2009-12-11 15:17:41 +0000
commitbfaf1f4433372b13eb1b50c3be2c27c547cd9af5 (patch)
tree62502696239a70c3573c86f8dde426acbabe7409 /src/libtiff/tif_dirread.c
parent6e1595f84fdc0b9e7cc3d620ce8f2ca707f6e3fd (diff)
*** empty log message ***
Diffstat (limited to 'src/libtiff/tif_dirread.c')
-rw-r--r--src/libtiff/tif_dirread.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libtiff/tif_dirread.c b/src/libtiff/tif_dirread.c
index 22f675a..4dc0f67 100644
--- a/src/libtiff/tif_dirread.c
+++ b/src/libtiff/tif_dirread.c
@@ -1,4 +1,4 @@
-/* $Id: tif_dirread.c,v 1.2 2009/08/21 04:01:59 scuri Exp $ */
+/* $Id: tif_dirread.c,v 1.3 2009/12/11 15:17:41 scuri Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -1426,7 +1426,14 @@ TIFFFetchFloatArray(TIFF* tif, TIFFDirEntry* dir, float* v)
{
if (dir->tdir_count == 1) {
- v[0] = *(float*) &dir->tdir_offset;
+ union
+ {
+ float f;
+ uint32 i;
+ } float_union;
+
+ float_union.i=dir->tdir_offset;
+ v[0]=float_union.f;
TIFFCvtIEEEFloatToNative(tif, dir->tdir_count, v);
return (1);
} else if (TIFFFetchData(tif, dir, (char*) v)) {