From aafff57428f16bfe4c96bc3b051240af9837bdc1 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 16 Jul 2016 06:41:39 +0200 Subject: [PATCH] * src/autofit/aflatin.c (af_latin_hints_compute_segments): Thinko. `max_pos' is always larger than `min_pos' so `FT_ABS' is not needed. Reported by Alexei. --- ChangeLog | 8 ++++++++ src/autofit/aflatin.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8018cfc1e..34394a445 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2016-07-15 Werner Lemberg + + * src/autofit/aflatin.c (af_latin_hints_compute_segments): Thinko. + + `max_pos' is always larger than `min_pos' so `FT_ABS' is not needed. + + Reported by Alexei. + 2016-07-16 Nikolaus Waxweiler * src/truetype/ttinterp.c (Ins_MIRP): Fix copy-and-paste error. diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c index fd4be9925..da52cc43f 100644 --- a/src/autofit/aflatin.c +++ b/src/autofit/aflatin.c @@ -1538,7 +1538,7 @@ segment->last = point; segment->pos = (FT_Short)( ( min_pos + max_pos ) >> 1 ); - segment->delta = (FT_Short)FT_ABS( ( max_pos - min_pos ) >> 1 ); + segment->delta = (FT_Short)( ( max_pos - min_pos ) >> 1 ); /* a segment is round if either its first or last point */ /* is a control point, and the length of the on points */