about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/tifftopnm.c2
-rw-r--r--doc/HISTORY2
2 files changed, 3 insertions, 1 deletions
diff --git a/converter/other/tifftopnm.c b/converter/other/tifftopnm.c
index d319e2e3..fe0de2d7 100644
--- a/converter/other/tifftopnm.c
+++ b/converter/other/tifftopnm.c
@@ -236,7 +236,7 @@ getTiffDimensions(TIFF *         const tiffP,
     int ok;
 
     unsigned int width, length;
-    unsigned int tiffOrientation;
+    unsigned short tiffOrientation;
     unsigned short orientation;
     int present;
 
diff --git a/doc/HISTORY b/doc/HISTORY
index 0a279043..ad45de46 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -24,6 +24,8 @@ not yet  BJH  Release 10.46.00
               pnmcut: finally make it just an alias of pamcut, which
               obsoleted it in 9.20.
 
+              tifftopnm: fix orientation problem on big-endian machines.
+
               pnmcrop: various fixes.
 
               g3topbm: fix array bound violation.  Introduced in 10.32.