From 75d56e5d7986659ec6b6ad6cf42cc2c6f6a76ae2 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Sat, 1 Aug 2009 00:32:12 +0900 Subject: [PATCH] pcf: Fix some data types mismatching with their sources. --- ChangeLog | 8 ++++++++ src/pcf/pcfread.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7161ffa7b..f76bb5119 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-07-31 suzuki toshiya + + pcf: Fix some data types mismatching with their sources. + + * src/pcf/pcfread.c (pcf_get_bitmaps): The types + of `nbitmaps', `i', `sizebitmaps' are matched with + the type of area FT_Bitmap.pitch * FT_Bitmap.rows. + 2009-07-31 suzuki toshiya pcf: Handle the string length by size_t variables. diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c index cbbd10589..9cce3f570 100644 --- a/src/pcf/pcfread.c +++ b/src/pcf/pcfread.c @@ -661,7 +661,7 @@ THE SOFTWARE. FT_Long* offsets; FT_Long bitmapSizes[GLYPHPADOPTIONS]; FT_ULong format, size; - int nbitmaps, i, sizebitmaps = 0; + FT_ULong nbitmaps, i, sizebitmaps = 0; error = pcf_seek_to_table_type( stream,