summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-24 15:36:09 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-24 15:36:09 +0000
commit591baf8fe3d13a38d39ee3f0f027839651f5d47b (patch)
treec6d000b3aeb4210bbf381c46061142da0c06c56b /bignum.c
parentda9300dce5bfcc0ffad869e3f8db7e0ebfcaaa64 (diff)
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
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 96488b4b1c..6c40c778de 100644
--- a/bignum.c
+++ b/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;