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

ruby-changes:3369

From: ko1@a...
Date: 3 Jan 2008 13:31:45 +0900
Subject: [ruby-changes:3369] akr - Ruby:r14862 (trunk): downcase MUL_OVERFLOW. it is a local variable.

akr	2008-01-03 13:31:37 +0900 (Thu, 03 Jan 2008)

  New Revision: 14862

  Modified files:
    trunk/util.c

  Log:
    downcase MUL_OVERFLOW.  it is a local variable.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/util.c?r1=14862&r2=14861&diff_format=u

Index: util.c
===================================================================
--- util.c	(revision 14861)
+++ util.c	(revision 14862)
@@ -88,7 +88,7 @@
 
     const char *start = str;
     unsigned long ret = 0, x;
-    unsigned long MUL_OVERFLOW = (~(unsigned long)0) / base;
+    unsigned long mul_overflow = (~(unsigned long)0) / base;
     int c;
     *overflow = 0;
 
@@ -98,7 +98,7 @@
             *retlen = (str-1) - start;
             return ret;
         }
-        if (MUL_OVERFLOW < ret)
+        if (mul_overflow < ret)
             *overflow = 1;
         ret *= base;
         x = ret;

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

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