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

ruby-changes:30291

From: akr <ko1@a...>
Date: Sat, 3 Aug 2013 01:45:18 +0900 (JST)
Subject: [ruby-changes:30291] akr:r42343 (trunk): * bignum.c (big2str_orig): Rename a local variable.

akr	2013-08-03 01:42:40 +0900 (Sat, 03 Aug 2013)

  New Revision: 42343

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

  Log:
    * bignum.c (big2str_orig): Rename a local variable.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42342)
+++ ChangeLog	(revision 42343)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Aug  3 01:40:33 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (big2str_orig): Rename a local variable.
+
 Sat Aug  3 01:20:19 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (bigadd_core): Removed.
Index: bignum.c
===================================================================
--- bignum.c	(revision 42342)
+++ bignum.c	(revision 42343)
@@ -4255,7 +4255,7 @@ big2str_orig(struct big2str_struct *b2s, https://github.com/ruby/ruby/blob/trunk/bignum.c#L4255
     BDIGIT* ds = BDIGITS(x);
     BDIGIT_DBL num;
     char buf[SIZEOF_BDIGIT_DBL*CHAR_BIT], *p;
-    int trim = !b2s->ptr;
+    int beginning = !b2s->ptr;
     size_t len = 0;
 
     assert(i <= 2);
@@ -4266,7 +4266,7 @@ big2str_orig(struct big2str_struct *b2s, https://github.com/ruby/ruby/blob/trunk/bignum.c#L4266
     if (1 < i)
         num |= BIGUP(ds[1]);
 
-    if (trim) {
+    if (beginning) {
         if (num == 0)
             return;
         p = buf;
@@ -4283,9 +4283,9 @@ big2str_orig(struct big2str_struct *b2s, https://github.com/ruby/ruby/blob/trunk/bignum.c#L4283
         p[--j] = ruby_digitmap[num % b2s->base];
         num /= b2s->base;
         if (j <= 0) break;
-        if (trim && num == 0) break;
+        if (beginning && num == 0) break;
     }
-    if (trim) {
+    if (beginning) {
 	while (j < sizeof(buf) && buf[j] == '0')
             j++;
         len = sizeof(buf) - j;

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

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