]> granicus.if.org Git - libass/commitdiff
Constify table in ass_strtod
authorYuriy M. Kaminskiy <yumkam@gmail.com>
Tue, 12 Jan 2010 05:20:58 +0000 (08:20 +0300)
committerGrigori Goronzy <greg@blackbox>
Tue, 12 Jan 2010 12:59:13 +0000 (13:59 +0100)
libass/ass_strtod.c

index 7b73630bc38fb22ba513fa9a72c32a63ab2cc46a..876503e457df02503a35204d42ee00de44bc342d 100644 (file)
 #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. */