[pshinter] Fix thinko.

* src/pshinter/pshalgo.c (psh_glyph_find_strong_points): Correctly
check `count'.
Bug introduced two commits earlier.
This commit is contained in:
Werner Lemberg 2015-02-22 20:41:03 +01:00
parent ca96fe01fa
commit 22b1d5ca67
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2015-02-22 Werner Lemberg <wl@gnu.org>
[pshinter] Fix thinko.
* src/pshinter/pshalgo.c (psh_glyph_find_strong_points): Correctly
check `count'.
Bug introduced two commits earlier.
2015-02-22 Werner Lemberg <wl@gnu.org>
[raster] Signedness fixes.

View File

@ -1696,14 +1696,12 @@
mask++;
for ( ; num_masks > 1; num_masks--, mask++ )
{
FT_UInt next;
FT_UInt count;
FT_UInt next = FT_MIN( mask->end_point, glyph->num_points );
next = FT_MIN( mask->end_point, glyph->num_points );
count = next - first;
if ( count > 0 )
if ( next > first )
{
FT_UInt count = next - first;
PSH_Point point = glyph->points + first;