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

ruby-changes:42146

From: naruse <ko1@a...>
Date: Tue, 22 Mar 2016 03:57:29 +0900 (JST)
Subject: [ruby-changes:42146] naruse:r54220 (trunk): fix typo

naruse	2016-03-22 03:57:25 +0900 (Tue, 22 Mar 2016)

  New Revision: 54220

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54220

  Log:
    fix typo

  Modified files:
    trunk/time.c
Index: time.c
===================================================================
--- time.c	(revision 54219)
+++ time.c	(revision 54220)
@@ -403,7 +403,6 @@ wi_mul(wideint_t x, wideint_t y, wideint https://github.com/ruby/ruby/blob/trunk/time.c#L403
 static wideval_t
 wmul(wideval_t wx, wideval_t wy)
 {
-    VALUE x, z;
 #if WIDEVALUE_IS_WIDER
     if (FIXWV_P(wx) && FIXWV_P(wy)) {
 	wideint_t z;
@@ -423,7 +422,6 @@ wmul(wideval_t wx, wideval_t wy) https://github.com/ruby/ruby/blob/trunk/time.c#L422
 static wideval_t
 wquo(wideval_t wx, wideval_t wy)
 {
-    VALUE x, y, ret;
 #if WIDEVALUE_IS_WIDER
     if (FIXWV_P(wx) && FIXWV_P(wy)) {
         wideint_t a, b, c;
@@ -509,7 +507,7 @@ wdiv(wideval_t wx, wideval_t wy) https://github.com/ruby/ruby/blob/trunk/time.c#L507
 {
 #if WIDEVALUE_IS_WIDER
     wideval_t q;
-    if (wdivmod0(wn, wd, &q, NULL)) return q;
+    if (wdivmod0(wx, wy, &q, NULL)) return q;
 #endif
     return v2w(div(wx, wy));
 }
@@ -519,7 +517,7 @@ wmod(wideval_t wx, wideval_t wy) https://github.com/ruby/ruby/blob/trunk/time.c#L517
 {
 #if WIDEVALUE_IS_WIDER
     wideval_t r;
-    if (wdivmod0(wn, wd, NULL, &r)) return r;
+    if (wdivmod0(wx, wy, NULL, &r)) return r;
 #endif
     return v2w(mod(wx, wy));
 }

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

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