From 9a7951d99b056957ba002a4e20ba7057d64faff5 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 16 Jul 2013 15:25:24 +0200 Subject: [PATCH] [smooth] Fix segfault caused by previous commit. * src/smooth/ftgrays.c (gray_set_cell): Always compute `ras.invalid'. --- ChangeLog | 7 +++++++ src/smooth/ftgrays.c | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d16793778..bf47171db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-07-16 Werner Lemberg + + [smooth] Fix segfault caused by previous commit. + + * src/smooth/ftgrays.c (gray_set_cell): Always compute + `ras.invalid'. + 2013-07-16 David Turner [smooth] Improve performance. diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index ab76829de..5262da5cd 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -310,7 +310,7 @@ typedef ptrdiff_t FT_PtrDist; #endif - /* Compute `divident / divisor' and return both its quotient and */ + /* Compute `dividend / divisor' and return both its quotient and */ /* remainder, cast to a specific type. This macro also ensures that */ /* the remainder is always positive. */ #define FT_DIV_MOD( type, dividend, divisor, quotient, remainder ) \ @@ -633,10 +633,10 @@ typedef ptrdiff_t FT_PtrDist; ras.cover = 0; ras.ex = ex; ras.ey = ey; - - ras.invalid = ( (unsigned)ey >= (unsigned)ras.count_ey || - ex >= ras.count_ex ); } + + ras.invalid = ( (unsigned)ey >= (unsigned)ras.count_ey || + ex >= ras.count_ex ); }