summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2013-01-28 22:29:51 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2013-01-28 22:29:51 -0500
commitd56e544d653b09c657911629557ffc5277a503e3 (patch)
tree166cadbd35b143ee2adaaa01071bb6f822ce3869
parent6b9034f0fdfcd84e62e7c0d29bfd458325f4ccd7 (diff)
downloadfreetype2-d56e544d653b09c657911629557ffc5277a503e3.tar.gz
Add an important comment.
Thanks to Hin-Tak Leung for the analysis.
-rw-r--r--src/base/ftoutln.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index 0efd88bca..84d64e417 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -989,6 +989,7 @@
l = FT_MIN( l_in, l_out );
+ /* non-strict inequality avoids divide-by-zero when q == l == 0 */
if ( FT_MulFix( xstrength, q ) <= FT_MulFix( d, l ) )
shift.x = FT_MulDiv( shift.x, xstrength, d );
else