diff options
author | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2009-07-03 18:01:43 +0900 |
---|---|---|
committer | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2009-07-03 18:01:43 +0900 |
commit | 8224bd671b8d5d43a47296a5761aa2fe185551f9 (patch) | |
tree | 071aeac6bbe28d7ad7630c56a82d668bbcd238b1 | |
parent | 48efcb612fc55d0a202e976fa962bf9d951d32a8 (diff) | |
download | freetype2-8224bd671b8d5d43a47296a5761aa2fe185551f9.tar.gz |
sfnt: Fix a data type mismatching with its source.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | src/sfnt/ttcmap.c | 2 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,14 @@ 2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> + sfnt: Fix a data type mismatching with its source. + + * src/sfnt/ttcmap.c (tt_cmap13_char_next): Fix the + type of `gindex' from FT_ULong to FT_UInt because + it is set by FT_UInt tt_cmap13_char_map_binary() or + TT_CMap13->cur_gindex. + +2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> + sfnt: Extend a few local variables to load 32-bit values. * src/sfnt/ttkern.c (tt_face_load_kern): Extend `count' diff --git a/src/sfnt/ttcmap.c b/src/sfnt/ttcmap.c index 0aeae5003..54dceba09 100644 --- a/src/sfnt/ttcmap.c +++ b/src/sfnt/ttcmap.c @@ -2531,7 +2531,7 @@ FT_UInt32 *pchar_code ) { TT_CMap13 cmap13 = (TT_CMap13)cmap; - FT_ULong gindex; + FT_UInt gindex; if ( cmap13->cur_charcode >= 0xFFFFFFFFUL ) |