diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-16 07:20:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-16 07:20:23 +0000 |
commit | 71430123d3cc7d5b261313213f17787f6e6f384d (patch) | |
tree | d4698956cff1467709e7dbba2accdb810323f125 /vm_exec.c | |
parent | 3efb36c25c6f8bbdccf7da3d24966289346fdd14 (diff) | |
download | ruby-71430123d3cc7d5b261313213f17787f6e6f384d.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.c')
0 files changed, 0 insertions, 0 deletions