shithub: freetype+ttf2subf

Download patch

ref: 44c865dfe180022a9400854904384442048cd38c
parent: c093db9d06581455607d5997998eb664b9c55bcb
author: David Turner <[email protected]>
date: Tue Feb 21 12:10:27 EST 2006

fixed compiler warning

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/sfnt/ttmtx.c
+++ b/src/sfnt/ttmtx.c
@@ -124,8 +124,8 @@
         goto Fail;
 
       num_longs = face->vertical.number_Of_VMetrics;
-      if ( num_longs > table_len / 4 )
-        num_longs = table_len / 4;
+      if ( (FT_ULong)num_longs > table_len / 4 )
+        num_longs = (FT_Long)(table_len / 4);
 
       face->vertical.number_Of_VMetrics = 0;
 
@@ -139,8 +139,8 @@
         goto Fail;
 
       num_longs = face->horizontal.number_Of_HMetrics;
-      if ( num_longs > table_len / 4 )
-        num_longs = table_len / 4;
+      if ( (FT_ULong)num_longs > table_len / 4 )
+        num_longs = (FT_Long)(table_len / 4);
 
       face->horizontal.number_Of_HMetrics = 0;