diff options
author | Werner Lemberg <wl@gnu.org> | 2015-02-20 08:35:32 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2015-02-20 08:35:32 +0100 |
commit | 3a8d0537b5b0cdf8594ffc5b7e385cac6d76aefa (patch) | |
tree | a60162e9f6089149e0ae564ff0fe3649b3a2735c /src/pshinter | |
parent | d7db7fb54f0decc3e5a92c0dac2bf425219739c5 (diff) | |
download | freetype2-3a8d0537b5b0cdf8594ffc5b7e385cac6d76aefa.tar.gz |
[cff] Signedness fixes for basic infrastructure and old engine.
* include/internal/pshints.h, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/cff/cffload.c,
src/cff/cffobjs.c, src/cff/cffparse.c, src/pshinter/pshrec.c: Apply.
Diffstat (limited to 'src/pshinter')
-rw-r--r-- | src/pshinter/pshrec.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pshinter/pshrec.c b/src/pshinter/pshrec.c index 51f23616d..eb7987ce4 100644 --- a/src/pshinter/pshrec.c +++ b/src/pshinter/pshrec.c @@ -835,14 +835,14 @@ /* add one or more stems to the current hints table */ static void ps_hints_stem( PS_Hints hints, - FT_Int dimension, - FT_UInt count, + FT_UInt dimension, + FT_Int count, FT_Long* stems ) { if ( !hints->error ) { /* limit "dimension" to 0..1 */ - if ( dimension < 0 || dimension > 1 ) + if ( dimension > 1 ) { FT_TRACE0(( "ps_hints_stem: invalid dimension (%d) used\n", dimension )); @@ -891,7 +891,7 @@ /* add one Type1 counter stem to the current hints table */ static void ps_hints_t1stem3( PS_Hints hints, - FT_Int dimension, + FT_UInt dimension, FT_Fixed* stems ) { FT_Error error = FT_Err_Ok; @@ -906,7 +906,7 @@ /* limit "dimension" to 0..1 */ - if ( dimension < 0 || dimension > 1 ) + if ( dimension > 1 ) { FT_TRACE0(( "ps_hints_t1stem3: invalid dimension (%d) used\n", dimension )); @@ -1128,7 +1128,7 @@ static void t1_hints_stem( T1_Hints hints, - FT_Int dimension, + FT_UInt dimension, FT_Fixed* coords ) { FT_Pos stems[2]; @@ -1172,12 +1172,12 @@ static void t2_hints_stems( T2_Hints hints, - FT_Int dimension, + FT_UInt dimension, FT_Int count, FT_Fixed* coords ) { - FT_Pos stems[32], y, n; - FT_Int total = count; + FT_Pos stems[32], y; + FT_Int total = count, n; y = 0; |