shithub: freetype+ttf2subf

Download patch

ref: 83d4181a36aa8fea584e7f20fe606bf636f3ed6b
parent: 17b6291d26d0ca5198e395e850428595a24b8054
author: Werner Lemberg <[email protected]>
date: Wed Feb 25 03:10:58 EST 2015

[lzw] Signedness fixes.

* src/lzw/ftzopen.c, src/lzw/ftzopen.h: Apply.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2015-02-25  Werner Lemberg  <[email protected]>
 
+	[lzw] Signedness fixes.
+
+	* src/lzw/ftzopen.c, src/lzw/ftzopen.h: Apply.
+
+2015-02-25  Werner Lemberg  <[email protected]>
+
 	[gxvalid] Signedness fixes.
 
 	* src/gxvalid/gxvbsln.c, src/gxvalid/gxvcommn.c,
--- 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;
 
--- 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;