diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-10 06:38:57 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-10 06:38:57 +0000 |
commit | 03b383a5754042573fbc2fcfa9f809cdeee438ae (patch) | |
tree | 028a6f223681c981184a52a9fc5fde6ffffd4c84 /complex.c | |
parent | 6dbda00a6237613bba6f49a18920ade38d7ac68c (diff) |
merge revision(s) 54896,54897: [Backport #12343]
* complex.c (rb_complex_set_imag): Fix to properly set imag
of complex.
* internal.h (RCOMPLEX_SET_IMAG): undef RCOMPLEX_SET_IMAG
instead of duplicated undef RCOMPLEX_SET_REAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r-- | complex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1351,7 +1351,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; } |