From 8707f00bb3e56590f04ede70013339aeba57875c Mon Sep 17 00:00:00 2001 From: "Yuriy M. Kaminskiy" Date: Tue, 12 Jan 2010 08:20:58 +0300 Subject: Constify table in ass_strtod --- libass/ass_strtod.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libass/ass_strtod.c b/libass/ass_strtod.c index 7b73630..876503e 100644 --- a/libass/ass_strtod.c +++ b/libass/ass_strtod.c @@ -16,12 +16,14 @@ #include #include +const static int maxExponent = 511; /* Largest possible base 10 exponent. Any * exponent larger than this will already * produce underflow or overflow, so there's * no need to worry about additional digits. */ +const static double powersOf10[] = { /* Table giving binary powers of 10. Entry */ 10., /* is 10^2^i. Used to convert decimal */ 100., /* exponents into floating-point numbers. */ -- cgit v1.2.3