[ruby-cvs:52146] nobu:r45001 (trunk): ruby.h: use FIX2LONG

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Feb 16 16:20:23 JST 2014


nobu	2014-02-16 16:20:23 +0900 (Sun, 16 Feb 2014)

  New Revision: 45001

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45001

  Log:
    ruby.h: use FIX2LONG
    
    * include/ruby/ruby.h (RBIGNUM_SIGN): use FIX2LONG() instead of
      FIX2INT() for optimization, since rb_big_cmp() returns only
      Fixnum -1..+1 for Finxum 0.
    
      (RBIGNUM_POSITIVE_P, RBIGNUM_NEGATIVE_P): ditto.

  Modified files:
    trunk/include/ruby/ruby.h


More information about the ruby-cvs mailing list