Commit 94cb3a2eb96b3f17a1a3bd0e6f7da97c0e1d8f57

Alexei Podtelezhnikov 2021-10-29T10:31:59

* src/truetype/ttgload.c (load_truetype_glyph): Fix MSVC warning C4312.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index a341c83..11968f6 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -1902,7 +1902,7 @@
       /* clear the nodes filled by sibling chains */
       node = ft_list_get_node_at( &loader->composites, recurse_count );
       for ( node2 = node; node2; node2 = node2->next )
-        node2->data = (void*)FT_ULONG_MAX;
+        node2->data = (void*)-1;
 
       /* check whether we already have a composite glyph with this index */
       if ( FT_List_Find( &loader->composites,