shithub: freetype+ttf2subf

Download patch

ref: 9ebdc9cb1bee31ce78a1484179f99f08a8ef5728
parent: 7f4b9bfbc9c779d542e93d46614c798d3327d95c
author: Alexei Podtelezhnikov <apodtele@gmail.com>
date: Sun Nov 7 18:21:40 EST 2021

* src/sfnt/ttload.c (tt_face_load_gasp): Fix a type mismatch warning.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -1433,7 +1433,7 @@
     FT_Error   error;
     FT_Memory  memory = stream->memory;
 
-    FT_UInt        j,num_ranges;
+    FT_UShort      j, num_ranges;
     TT_GaspRange   gasp_ranges = NULL;
 
 
@@ -1458,7 +1458,7 @@
       goto Exit;
     }
 
-    FT_TRACE3(( "numRanges: %u\n", num_ranges ));
+    FT_TRACE3(( "numRanges: %hu\n", num_ranges ));
 
     if ( FT_QNEW_ARRAY( gasp_ranges, num_ranges ) ||
          FT_FRAME_ENTER( num_ranges * 4L )        )