[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.
diff --git a/ChangeLog b/ChangeLog
index 0887754..fa36dc1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2012-12-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [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 <wl@gnu.org>
[bdf] Fix Savannah bug #37907.
diff --git a/src/base/fttrigon.c b/src/base/fttrigon.c
index 1556984..a638f8c 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