From 44c865dfe180022a9400854904384442048cd38c Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 21 Feb 2006 17:10:27 +0000 Subject: [PATCH] fixed compiler warning --- src/sfnt/ttmtx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sfnt/ttmtx.c b/src/sfnt/ttmtx.c index a6925ec43..bd6ce4440 100644 --- 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;