shithub: freetype+ttf2subf

Download patch

ref: cf4224adb9f1ddd7feccc585e162304829f6bd40
parent: 248f5629d8889aa5b77ea5bfce0935140293d50d
author: Werner Lemberg <[email protected]>
date: Tue Aug 16 02:44:23 EDT 2016

[truetype] Fix compiler warning.

* src/truetype/ttgload.c (load_truetype_glyph): Add cast.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-08-16  Werner Lemberg  <[email protected]>
+
+	[truetype] Fix compiler warning.
+
+	* src/truetype/ttgload.c (load_truetype_glyph): Add cast.
+
 2016-08-13  Werner Lemberg  <[email protected]>
 
 	[winfonts] Avoid zero bitmap width and height.
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -1441,7 +1441,7 @@
     {
       FT_TRACE1(( "load_truetype_glyph: maxComponentDepth set to %d\n",
                   recurse_count ));
-      face->max_profile.maxComponentDepth = recurse_count;
+      face->max_profile.maxComponentDepth = (FT_UShort)recurse_count;
     }
 
 #ifndef FT_CONFIG_OPTION_INCREMENTAL