libtiff: * libtiff/tif_write.c (TIFFAppendToStrip): Remove cast which

https://github.com/libsdl-org/libtiff/commit/2ecfe06f4f9f866bed172be3299014997949efde

From 2ecfe06f4f9f866bed172be3299014997949efde Mon Sep 17 00:00:00 2001
From: Bob Friesenhahn <[EMAIL REDACTED]>
Date: Fri, 28 Aug 2009 02:23:19 +0000
Subject: [PATCH] * libtiff/tif_write.c (TIFFAppendToStrip): Remove cast which
 caused libtiff to output a wrong last strip with byte-count and strip-offset
 of zero.  This cast was added on the day of the 3.9.0 release.

---
 ChangeLog           | 5 +++++
 libtiff/tif_write.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f4e1c2a2..f870a311 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-08-27  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
 
+	* libtiff/tif_write.c (TIFFAppendToStrip): Remove cast which
+	caused libtiff to output a wrong last strip with byte-count and
+	strip-offset of zero.  This cast was added on the day of the 3.9.0
+	release.
+
 	* libtiff/tif_config.vc.h: tiffiop.h needs the TIFF_INT64_T and
 	TIFF_UINT64_T defines in order to compile.  Copy existing
 	definitions from tiffconf.vc.h.
diff --git a/libtiff/tif_write.c b/libtiff/tif_write.c
index 10702344..ec371361 100644
--- a/libtiff/tif_write.c
+++ b/libtiff/tif_write.c
@@ -1,4 +1,4 @@
-/* $Id: tif_write.c,v 1.22.2.3 2009-08-20 20:23:52 bfriesen Exp $ */
+/* $Id: tif_write.c,v 1.22.2.4 2009-08-28 02:23:19 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -630,7 +630,7 @@ TIFFAppendToStrip(TIFF* tif, tstrip_t strip, tidata_t data, tsize_t cc)
 
             if( td->td_stripbytecount[strip] != 0 
                 && td->td_stripoffset[strip] != 0 
-                && (tsize_t) td->td_stripbytecount[strip] >= cc )
+                && td->td_stripbytecount[strip] >= cc )
             {
                 /* 
                  * There is already tile data on disk, and the new tile