diff options
author | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2009-08-01 00:32:24 +0900 |
---|---|---|
committer | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2009-08-01 00:32:24 +0900 |
commit | eec405540d3148bd581c3cdf7e7f126581739ccd (patch) | |
tree | 88dc8cb403778606f0c86910673f3ab1c93c96d6 /src/pcf | |
parent | eceaffef3e1e2bf93583d6eabc6e1ba1b567e40f (diff) |
pcf: Fix a comparison between FT_Long and FT_ULong.
Diffstat (limited to 'src/pcf')
-rw-r--r-- | src/pcf/pcfread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c index 9cce3f57..cdef433b 100644 --- a/src/pcf/pcfread.c +++ b/src/pcf/pcfread.c @@ -692,7 +692,8 @@ THE SOFTWARE. FT_TRACE4(( " number of bitmaps: %d\n", nbitmaps )); - if ( nbitmaps != face->nmetrics ) + /* XXX: PCF_Face->nmetrics is singed FT_Long, see pcf.h */ + if ( face->nmetrics < 0 || nbitmaps != ( FT_ULong )face->nmetrics ) return PCF_Err_Invalid_File_Format; if ( FT_NEW_ARRAY( offsets, nbitmaps ) ) |