From 8ac5c5c8a570fdb9a92e8f811e3ea5b623188ee1 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sat, 15 Dec 2012 23:33:55 -0500 Subject: [PATCH] [base] Fix 11-year old bug. Since the initial commit (ebe85f59) the value of FT_TRIG_SCALE has always been slightly less than the correct value, which has been given in the comment as a hexadecimal. As a result, vector lengths were underestimated and rotated vectors were shortened. --- ChangeLog | 11 +++++++++++ src/base/fttrigon.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0887754f4..fa36dc11c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2012-12-15 Alexei Podtelezhnikov + + [base] Fix 11-year old bug. + + Since the initial commit (ebe85f59) the value of FT_TRIG_SCALE has + always been slightly less than the correct value, which has been + given in the comment as a hexadecimal. As a result, vector lengths + were underestimated and rotated vectors were shortened. + + * src/base/fttrigon.c (FT_TRIG_SCALE): Fix macro value. + 2012-12-15 Werner Lemberg [bdf] Fix Savannah bug #37907. diff --git a/src/base/fttrigon.c b/src/base/fttrigon.c index 1556984ce..a638f8c7f 100644 --- a/src/base/fttrigon.c +++ b/src/base/fttrigon.c @@ -41,7 +41,7 @@ }; /* the Cordic shrink factor, multiplied by 2^32 */ -#define FT_TRIG_SCALE 1166391785UL /* 0x4585BA38UL */ +#define FT_TRIG_SCALE 1166391864UL /* 0x4585BA38UL */ #ifdef FT_LONG64