aboutsummaryrefslogtreecommitdiffstats
path: root/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c2
1 files changed, 1 insertions, 1 deletions
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;
}