ref: 22b1d5ca6772b155eaad79b0e0b406e308bd0d86
parent: ca96fe01fa7687d43c062f5d48cf8fa919170be4
author: Werner Lemberg <[email protected]>
date: Sun Feb 22 15:41:03 EST 2015
[pshinter] Fix thinko. * src/pshinter/pshalgo.c (psh_glyph_find_strong_points): Correctly check `count'. Bug introduced two commits earlier.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2015-02-22 Werner Lemberg <[email protected]>
+ [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 <[email protected]>
+
[raster] Signedness fixes.
* src/raster/ftraster.c, src/raster/ftrend1.c: Apply.
--- a/src/pshinter/pshalgo.c
+++ b/src/pshinter/pshalgo.c
@@ -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;