ref: 763b39496e6453a449374694983d9622a8aad775
parent: f420757c73543e3d57060a5394eb76004d959e4b
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:30:14 EDT 2009
sfnt: Count the size of the memory object by ptrdiff_t.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2009-07-31 suzuki toshiya <[email protected]>
+ sfnt: Count the size of the memory object by ptrdiff_t.
+
+ * src/sfnt/ttbdf.c (tt_face_find_bdf_prop): The type of
+ `peroperty_len' is changed from FT_UInt to FT_Offset,
+ to match with size_t, which is appropriate type for the
+ object in the memory buffer.
+
+2009-07-31 suzuki toshiya <[email protected]>
+
lzw: Count the size of the memory object by ptrdiff_t.
* src/lzw/ftzopen.h: The types of FT_LzwState->{buf_total,
--- a/src/sfnt/ttbdf.c
+++ b/src/sfnt/ttbdf.c
@@ -141,13 +141,13 @@
const char* property_name,
BDF_PropertyRec *aprop )
{
- TT_BDF bdf = &face->bdf;
- FT_Size size = FT_FACE(face)->size;
- FT_Error error = 0;
- FT_Byte* p;
- FT_UInt count;
- FT_Byte* strike;
- FT_UInt property_len;
+ TT_BDF bdf = &face->bdf;
+ FT_Size size = FT_FACE(face)->size;
+ FT_Error error = 0;
+ FT_Byte* p;
+ FT_UInt count;
+ FT_Byte* strike;
+ FT_Offset property_len;
aprop->type = BDF_PROPERTY_TYPE_NONE;