From bd52a2eabeacd757064eda1ce85045e0fe3748ba Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 1 Jul 2002 21:50:12 +0000 Subject: [PATCH] * src/sfnt/ttcmap0.c: fixing the cmap 8 and 12 parsing routines --- src/sfnt/ttcmap0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sfnt/ttcmap0.c b/src/sfnt/ttcmap0.c index 17bb776de..0cd5d7314 100644 --- a/src/sfnt/ttcmap0.c +++ b/src/sfnt/ttcmap0.c @@ -1271,12 +1271,12 @@ FT_Byte* table = cmap->data; FT_Byte* p = table + 8204; FT_UInt32 num_groups = TT_NEXT_ULONG( p ); - FT_UInt32 n, start, end, start_id; + FT_UInt32 start, end, start_id; p = table + 8208; - for ( n = 0; n < num_groups++; n++ ) + for ( ; num_groups > 0; num_groups-- ) { start = TT_NEXT_ULONG( p ); end = TT_NEXT_ULONG( p ); @@ -1578,12 +1578,12 @@ FT_UInt gindex = 0; FT_Byte* p = table + 12; FT_UInt32 num_groups = TT_NEXT_ULONG( p ); - FT_UInt32 n, start, end, start_id; + FT_UInt32 start, end, start_id; p = table + 16; - for ( n = 0; n < num_groups++; n++ ) + for ( ; num_groups > 0; num_groups-- ) { start = TT_NEXT_ULONG( p ); end = TT_NEXT_ULONG( p );