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

ruby-changes:42822

From: yui-knk <ko1@a...>
Date: Tue, 3 May 2016 21:57:42 +0900 (JST)
Subject: [ruby-changes:42822] yui-knk:r54896 (trunk): * complex.c (rb_complex_set_imag): Fix to properly set imag

yui-knk	2016-05-03 22:54:19 +0900 (Tue, 03 May 2016)

  New Revision: 54896

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

  Log:
    * complex.c (rb_complex_set_imag): Fix to properly set imag
      of complex.

  Modified files:
    trunk/ChangeLog
    trunk/complex.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54895)
+++ ChangeLog	(revision 54896)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue May  3 22:55:07 2016  Yuichiro Kaneko  <yui-knk@r...>
+
+	* complex.c (rb_complex_set_imag): Fix to properly set imag
+	  of complex.
+
 Tue May  3 22:19:55 2016  NARUSE, Yui  <naruse@r...>
 
 	* configure.in (warnflags): use -std=gnu99 instead of
Index: complex.c
===================================================================
--- complex.c	(revision 54895)
+++ complex.c	(revision 54896)
@@ -1411,7 +1411,7 @@ rb_complex_set_real(VALUE cmp, VALUE r) https://github.com/ruby/ruby/blob/trunk/complex.c#L1411
 VALUE
 rb_complex_set_imag(VALUE cmp, VALUE i)
 {
-    RCOMPLEX_SET_REAL(cmp, i);
+    RCOMPLEX_SET_IMAG(cmp, i);
     return cmp;
 }
 

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

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