[前][次][番号順一覧][スレッド一覧]

ruby-changes:12992

From: nobu <ko1@a...>
Date: Wed, 2 Sep 2009 13:32:34 +0900 (JST)
Subject: [ruby-changes:12992] Ruby:r24736 (trunk): * math.c (math_gamma): constified fact_table.

nobu	2009-09-02 13:32:18 +0900 (Wed, 02 Sep 2009)

  New Revision: 24736

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24736

  Log:
    * math.c (math_gamma): constified fact_table.

  Modified files:
    trunk/math.c

Index: math.c
===================================================================
--- math.c	(revision 24735)
+++ math.c	(revision 24736)
@@ -637,7 +637,7 @@
 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,

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]