diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-03 13:54:19 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-03 13:54:19 +0000 |
commit | 72ea235df006ff6cb15f7d3053eb7a5d477778d4 (patch) | |
tree | 14d845d69c70e33acd8e7de3bfd3ad5d186e08ec /complex.c | |
parent | c9af3fa432f8d1517470c7282d82e35c910f6bea (diff) | |
download | ruby-72ea235df006ff6cb15f7d3053eb7a5d477778d4.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
Diffstat (limited to 'complex.c')
-rw-r--r-- | complex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |