cid: Fix some data types mismatching with their sources.

This commit is contained in:
suzuki toshiya 2009-07-03 18:01:21 +09:00
parent 8f357a2e2e
commit 3fb76769ed
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cid: Fix some data types mismatching with their sources.
* src/cid/cidparse.c (cid_parser_new): The types of
`read_len' and `stream_len' are matched to
FT_Stream->size. Unrequired cast is removed.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cff: Fix for unused variable `rest'.

View File

@ -86,13 +86,13 @@
/* `StartData' or `/sfnts' */
{
FT_Byte buffer[256 + 10];
FT_Int read_len = 256 + 10;
FT_Long read_len = 256 + 10; /* same as signed FT_Stream->size */
FT_Byte* p = buffer;
for ( offset = (FT_ULong)FT_STREAM_POS(); ; offset += 256 )
for ( offset = FT_STREAM_POS(); ; offset += 256 )
{
FT_Int stream_len;
FT_Long stream_len; /* same as signed FT_Stream->size */
stream_len = stream->size - FT_STREAM_POS();