diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-12 14:54:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-12 14:54:06 +0000 |
commit | 2f0b8e2793b384146cc042decdd483e8331f86f9 (patch) | |
tree | daad7e159929e2c9aa9832b435bd7f6bd5adf8a9 /numeric.c | |
parent | b736c9b5dcdda56597a1b28bae11762f8042fee5 (diff) | |
download | ruby-2f0b8e2793b384146cc042decdd483e8331f86f9.tar.gz |
* numeric.c (rb_num2fix): result of rb_num2long is SIGNED_VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1858,7 +1858,7 @@ rb_fix2int(VALUE val) VALUE rb_num2fix(VALUE val) { - long v; + SIGNED_VALUE v; if (FIXNUM_P(val)) return val; |