From d56e544d653b09c657911629557ffc5277a503e3 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 28 Jan 2013 22:29:51 -0500 Subject: [PATCH] Add an important comment. Thanks to Hin-Tak Leung for the analysis. --- src/base/ftoutln.c | 1 + 1 file changed, 1 insertion(+) 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