[ruby-cvs:64436] nobu:r57270 (trunk): numeric.c: short circuit

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Jan 5 16:27:19 JST 2017


nobu	2017-01-05 16:27:19 +0900 (Thu, 05 Jan 2017)

  New Revision: 57270

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57270

  Log:
    numeric.c: short circuit
    
    * numeric.c (int_pow): short circuit when y is 0, always return 1.

  Modified files:
    trunk/numeric.c


More information about the ruby-cvs mailing list