[truetype] Fix compiler warning. * src/truetype/ttgload.c (load_truetype_glyph): Add cast.
diff --git a/ChangeLog b/ChangeLog
index e1f6629..3cf0002 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-08-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix compiler warning.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Add cast.
+
2016-08-13 Werner Lemberg <wl@gnu.org>
[winfonts] Avoid zero bitmap width and height.
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 6f9b725..2d0b29f 100644
--- 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