Commit 83d4181a36aa8fea584e7f20fe606bf636f3ed6b

Werner Lemberg 2015-02-25T08:10:58

[lzw] Signedness fixes. * src/lzw/ftzopen.c, src/lzw/ftzopen.h: Apply.

diff --git a/ChangeLog b/ChangeLog
index 0bd8377..e60c314 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2015-02-25  Werner Lemberg  <wl@gnu.org>
 
+	[lzw] Signedness fixes.
+
+	* src/lzw/ftzopen.c, src/lzw/ftzopen.h: Apply.
+
+2015-02-25  Werner Lemberg  <wl@gnu.org>
+
 	[gxvalid] Signedness fixes.
 
 	* src/gxvalid/gxvbsln.c, src/gxvalid/gxvcommn.c,
diff --git a/src/lzw/ftzopen.c b/src/lzw/ftzopen.c
index 29b3c86..f96bb73 100644
--- a/src/lzw/ftzopen.c
+++ b/src/lzw/ftzopen.c
@@ -55,7 +55,7 @@
   ft_lzwstate_get_code( FT_LzwState  state )
   {
     FT_UInt   num_bits = state->num_bits;
-    FT_Int    offset   = state->buf_offset;
+    FT_UInt   offset   = state->buf_offset;
     FT_Byte*  p;
     FT_Int    result;
 
diff --git a/src/lzw/ftzopen.h b/src/lzw/ftzopen.h
index ae60fbe..d35e380 100644
--- a/src/lzw/ftzopen.h
+++ b/src/lzw/ftzopen.h
@@ -116,8 +116,8 @@
     FT_Int       in_eof;
 
     FT_Byte      buf_tab[16];
-    FT_Int       buf_offset;
-    FT_Int       buf_size;
+    FT_UInt      buf_offset;
+    FT_UInt      buf_size;
     FT_Bool      buf_clear;
     FT_Offset    buf_total;