mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rb_int_powm: call rb_int_pow directly
* bignum.c (rb_int_powm): call rb_int_pow directly instead of calling `**` operator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da9300dce5
commit
591baf8fe3
1 changed files with 1 additions and 1 deletions
2
bignum.c
2
bignum.c
|
@ -7051,7 +7051,7 @@ rb_int_powm(int const argc, VALUE * const argv, VALUE const num)
|
|||
rb_check_arity(argc, 1, 2);
|
||||
|
||||
if (argc == 1) {
|
||||
return rb_funcall(num, rb_intern("**"), 1, argv[0]);
|
||||
return rb_int_pow(num, argv[0]);
|
||||
}
|
||||
else {
|
||||
VALUE const a = num;
|
||||
|
|
Loading…
Reference in a new issue