ruby-changes:29936
From: akr <ko1@a...>
Date: Mon, 15 Jul 2013 21:56:39 +0900 (JST)
Subject: [ruby-changes:29936] akr:r41988 (trunk): Fix spaces.
akr 2013-07-15 21:56:29 +0900 (Mon, 15 Jul 2013) New Revision: 41988 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41988 Log: Fix spaces. Modified files: trunk/bignum.c Index: bignum.c =================================================================== --- bignum.c (revision 41987) +++ bignum.c (revision 41988) @@ -858,7 +858,7 @@ bary_pack(int sign, BDIGIT *ds, size_t n https://github.com/ruby/ruby/blob/trunk/bignum.c#L858 ((BDIGIT*)words)[i] = swap_bdigit(d); } } - if (mswordfirst_p ? !msbytefirst_p : msbytefirst_p) { + if (mswordfirst_p ? !msbytefirst_p : msbytefirst_p) { size_t i; BDIGIT *p = words; for (i = 0; i < numwords; i++) { @@ -4843,10 +4843,10 @@ bigdivrem1(void *ptr) https://github.com/ruby/ruby/blob/trunk/bignum.c#L4843 bds->j = j; return 0; } - if (zds[j] == yds[ny-1]) q = BDIGMAX; + if (zds[j] == yds[ny-1]) q = BDIGMAX; else q = (BDIGIT)((BIGUP(zds[j]) + zds[j-1])/yds[ny-1]); if (q) { - i = bds->nyzero; num = 0; t2 = 0; + i = bds->nyzero; num = 0; t2 = 0; do { /* multiply and subtract */ BDIGIT_DBL ee; t2 += (BDIGIT_DBL)yds[i] * q; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/