summaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-14 07:10:31 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-14 07:10:31 +0000
commit757a5f338f16fcf55e02b3dcf67a5df795c5d40b (patch)
tree472565a24cc842b64c3b97f573688154a1ac75bb /numeric.c
parentf68806890907244281079fccb61fdd29b3ddc8e6 (diff)
downloadruby-757a5f338f16fcf55e02b3dcf67a5df795c5d40b.tar.gz
ruby-757a5f338f16fcf55e02b3dcf67a5df795c5d40b.tar.xz
ruby-757a5f338f16fcf55e02b3dcf67a5df795c5d40b.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1039 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 cc53c3660..0a172a396 100644
--- a/numeric.c
+++ b/numeric.c
@@ -785,7 +785,7 @@ rb_num2long(val)
return Qnil; /* not reached */
default:
- val = rb_Integer(val);
+ val = rb_to_int(val);
return NUM2LONG(val);
}
}