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

ruby-changes:30816

From: nobu <ko1@a...>
Date: Mon, 9 Sep 2013 14:47:51 +0900 (JST)
Subject: [ruby-changes:30816] nobu:r42895 (trunk): complex.c: fix typo

nobu	2013-09-09 14:47:47 +0900 (Mon, 09 Sep 2013)

  New Revision: 42895

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

  Log:
    complex.c: fix typo
    
    * complex.c (nucomp_real_check): fix a variable name.

  Modified files:
    trunk/complex.c
Index: complex.c
===================================================================
--- complex.c	(revision 42894)
+++ complex.c	(revision 42895)
@@ -381,10 +381,10 @@ nucomp_canonicalization(int f) https://github.com/ruby/ruby/blob/trunk/complex.c#L381
 inline static void
 nucomp_real_check(VALUE num)
 {
-    if (!RB_TYPE_P(x, T_FIXNUM) &&
-	!RB_TYPE_P(x, T_BIGNUM) &&
-	!RB_TYPE_P(x, T_FLOAT) &&
-	!RB_TYPE_P(x, T_RATIONAL)) {
+    if (!RB_TYPE_P(num, T_FIXNUM) &&
+	!RB_TYPE_P(num, T_BIGNUM) &&
+	!RB_TYPE_P(num, T_FLOAT) &&
+	!RB_TYPE_P(num, T_RATIONAL)) {
 	if (!k_numeric_p(num) || !f_real_p(num))
 	    rb_raise(rb_eTypeError, "not a real");
     }

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

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