ref: 78ba8a610c68e44baa7d59f6df03998afccc3070
parent: 52170ac0ce5b6c738e88a94d12bee0794474d7f4
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:32:11 EDT 2009
pcf: Fix some data types mismatching with their sources.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2009-07-31 suzuki toshiya <[email protected]>
+ pcf: Fix some data types mismatching with their sources.
+
+ * src/pcf/pcfread.c (pcf_seek_to_table_type,
+ pcf_has_table_type): The type of 3rd argument
+ `ntables' is matched with PCF_Toc->count.
+
+2009-07-31 suzuki toshiya <[email protected]>
+
otvalid: Truncate the glyph index to 16-bit.
* src/otvalid/otvalid.c (otv_validate): Checks
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -289,13 +289,13 @@
static FT_Error
pcf_seek_to_table_type( FT_Stream stream,
PCF_Table tables,
- FT_Int ntables,
+ FT_ULong ntables, /* same as PCF_Toc->count */
FT_ULong type,
FT_ULong *aformat,
FT_ULong *asize )
{
FT_Error error = PCF_Err_Invalid_File_Format;
- FT_Int i;
+ FT_ULong i;
for ( i = 0; i < ntables; i++ )
@@ -327,10 +327,10 @@
static FT_Bool
pcf_has_table_type( PCF_Table tables,
- FT_Int ntables,
+ FT_ULong ntables, /* same as PCF_Toc->count */
FT_ULong type )
{
- FT_Int i;
+ FT_ULong i;
for ( i = 0; i < ntables; i++ )