mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
03cbafcf23
commit
c949686d02
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
Tue May 3 22:19:55 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (warnflags): use -std=gnu99 instead of
|
* configure.in (warnflags): use -std=gnu99 instead of
|
||||||
|
|
|
@ -1411,7 +1411,7 @@ rb_complex_set_real(VALUE cmp, VALUE r)
|
||||||
VALUE
|
VALUE
|
||||||
rb_complex_set_imag(VALUE cmp, VALUE i)
|
rb_complex_set_imag(VALUE cmp, VALUE i)
|
||||||
{
|
{
|
||||||
RCOMPLEX_SET_REAL(cmp, i);
|
RCOMPLEX_SET_IMAG(cmp, i);
|
||||||
return cmp;
|
return cmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue