ruby-changes:50446
From: mrkn <ko1@a...>
Date: Sun, 25 Feb 2018 00:36:15 +0900 (JST)
Subject: [ruby-changes:50446] mrkn:r62567 (trunk): rb_int_powm: call rb_int_pow directly
mrkn 2018-02-25 00:36:09 +0900 (Sun, 25 Feb 2018) New Revision: 62567 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62567 Log: rb_int_powm: call rb_int_pow directly * bignum.c (rb_int_powm): call rb_int_pow directly instead of calling `**` operator. Modified files: trunk/bignum.c Index: bignum.c =================================================================== --- bignum.c (revision 62566) +++ bignum.c (revision 62567) @@ -7051,7 +7051,7 @@ rb_int_powm(int const argc, VALUE * cons https://github.com/ruby/ruby/blob/trunk/bignum.c#L7051 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/