diff options
author | Even Rouault <even.rouault@spatialys.com> | 2016-11-20 22:29:47 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2016-11-20 22:29:47 +0000 |
commit | cdc3c9b7e1d78c6f5e3580026e8b10df12c1943b (patch) | |
tree | 1db679c8a42612addb1f5e10fe272bc1ebb824ca /libtiff/tif_open.c | |
parent | a9cf335a7703ca24f3debc1f8f914b276c4e7218 (diff) | |
download | libtiff-git-cdc3c9b7e1d78c6f5e3580026e8b10df12c1943b.tar.gz |
Commit changes that should have gone with previous commit
Diffstat (limited to 'libtiff/tif_open.c')
-rw-r--r-- | libtiff/tif_open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libtiff/tif_open.c b/libtiff/tif_open.c index 5c9036e6..a7279e1e 100644 --- a/libtiff/tif_open.c +++ b/libtiff/tif_open.c @@ -1,4 +1,4 @@ -/* $Id: tif_open.c,v 1.47 2016-01-23 21:20:34 erouault Exp $ */ +/* $Id: tif_open.c,v 1.48 2016-11-20 22:29:47 erouault Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -279,10 +279,10 @@ TIFFClientOpen( * Setup header and write. */ #ifdef WORDS_BIGENDIAN - tif->tif_header.common.tiff_magic = tif->tif_flags & TIFF_SWAB + tif->tif_header.common.tiff_magic = (tif->tif_flags & TIFF_SWAB) ? TIFF_LITTLEENDIAN : TIFF_BIGENDIAN; #else - tif->tif_header.common.tiff_magic = tif->tif_flags & TIFF_SWAB + tif->tif_header.common.tiff_magic = (tif->tif_flags & TIFF_SWAB) ? TIFF_BIGENDIAN : TIFF_LITTLEENDIAN; #endif if (!(tif->tif_flags&TIFF_BIGTIFF)) |