mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* complex.c (nucomp_rationalize): fix function. [ruby-core:40667]
[Bug #5546] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c852d76f46
commit
292b3e4113
3 changed files with 7 additions and 1 deletions
|
@ -1374,7 +1374,7 @@ nucomp_rationalize(int argc, VALUE *argv, VALUE self)
|
|||
rb_raise(rb_eRangeError, "can't convert %s into Rational",
|
||||
StringValuePtr(s));
|
||||
}
|
||||
return rb_funcall(dat->real, rb_intern("rationalize"), argc, argv);
|
||||
return rb_funcall2(dat->real, rb_intern("rationalize"), argc, argv);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue