* math.c (math_gamma): constified fact_table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a4b94c4443
commit
dc697b1905
2
math.c
2
math.c
@ -637,7 +637,7 @@ math_erfc(VALUE obj, VALUE x)
|
|||||||
static VALUE
|
static VALUE
|
||||||
math_gamma(VALUE obj, VALUE x)
|
math_gamma(VALUE obj, VALUE x)
|
||||||
{
|
{
|
||||||
static double fact_table[] = {
|
static const double fact_table[] = {
|
||||||
/* fact(0) */ 1.0,
|
/* fact(0) */ 1.0,
|
||||||
/* fact(1) */ 1.0,
|
/* fact(1) */ 1.0,
|
||||||
/* fact(2) */ 2.0,
|
/* fact(2) */ 2.0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user