mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
1 changed files with 1 additions and 1 deletions
2
math.c
2
math.c
|
@ -637,7 +637,7 @@ math_erfc(VALUE obj, VALUE x)
|
|||
static VALUE
|
||||
math_gamma(VALUE obj, VALUE x)
|
||||
{
|
||||
static double fact_table[] = {
|
||||
static const double fact_table[] = {
|
||||
/* fact(0) */ 1.0,
|
||||
/* fact(1) */ 1.0,
|
||||
/* fact(2) */ 2.0,
|
||||
|
|
Loading…
Add table
Reference in a new issue