From: Yuriy M. Kaminskiy Date: Tue, 12 Jan 2010 05:20:58 +0000 (+0300) Subject: Constify table in ass_strtod X-Git-Tag: 0.9.9~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8707f00bb3e56590f04ede70013339aeba57875c;p=libass Constify table in ass_strtod --- 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. */