[ruby-cvs:61354] naruse:r54193 (trunk): * numeric.c (fix_cmp): use rb_big_cmp if x is Fixnum and y is Bignum.

naruse at ruby-lang.org naruse at ruby-lang.org
Sat Mar 19 19:06:57 JST 2016


naruse	2016-03-19 19:06:57 +0900 (Sat, 19 Mar 2016)

  New Revision: 54193

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

  Log:
    * numeric.c (fix_cmp): use rb_big_cmp if x is Fixnum and y is Bignum.
      rb_big_cmp handles such case smartly with big_norm.

  Modified files:
    trunk/numeric.c


More information about the ruby-cvs mailing list