aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-03 13:54:19 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-03 13:54:19 +0000
commitc949686d02449481ce940956ba6cb4721ade2aa8 (patch)
tree14d845d69c70e33acd8e7de3bfd3ad5d186e08ec
parent03cbafcf23720229282125323548c14a4e30eba1 (diff)
downloadruby-c949686d02449481ce940956ba6cb4721ade2aa8.tar.gz
* complex.c (rb_complex_set_imag): Fix to properly set imag
of complex. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--complex.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 833b2a7713..0da562833b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue May 3 22:55:07 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
+
+ * complex.c (rb_complex_set_imag): Fix to properly set imag
+ of complex.
+
Tue May 3 22:19:55 2016 NARUSE, Yui <naruse@ruby-lang.org>
* configure.in (warnflags): use -std=gnu99 instead of
diff --git a/complex.c b/complex.c
index 0d4073018d..ef3c01d0f8 100644
--- a/complex.c
+++ b/complex.c
@@ -1411,7 +1411,7 @@ rb_complex_set_real(VALUE cmp, VALUE r)
VALUE
rb_complex_set_imag(VALUE cmp, VALUE i)
{
- RCOMPLEX_SET_REAL(cmp, i);
+ RCOMPLEX_SET_IMAG(cmp, i);
return cmp;
}