diff options
author | Yuriy M. Kaminskiy <yumkam@gmail.com> | 2010-01-12 08:20:58 +0300 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2010-01-12 13:59:13 +0100 |
commit | 8707f00bb3e56590f04ede70013339aeba57875c (patch) | |
tree | 4ce979b8bb22e320c06afc0b38b8c1c1081e7ced | |
parent | 8db4a5b1b5ab6598b96092e08586f2bed8ab8f39 (diff) | |
download | libass-8707f00bb3e56590f04ede70013339aeba57875c.tar.bz2 libass-8707f00bb3e56590f04ede70013339aeba57875c.tar.xz |
Constify table in ass_strtod
-rw-r--r-- | libass/ass_strtod.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <ctype.h> #include <errno.h> +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. */ |