summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-12 14:54:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-12 14:54:06 +0000
commit2f0b8e2793b384146cc042decdd483e8331f86f9 (patch)
treedaad7e159929e2c9aa9832b435bd7f6bd5adf8a9 /numeric.c
parentb736c9b5dcdda56597a1b28bae11762f8042fee5 (diff)
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 65d501ae1e..5125507f04 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1858,7 +1858,7 @@ rb_fix2int(VALUE val)
VALUE
rb_num2fix(VALUE val)
{
- long v;
+ SIGNED_VALUE v;
if (FIXNUM_P(val)) return val;