1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1998-04-20 06:20:35 +00:00
parent 5a1e96b22a
commit 4dd5679cbb
8 changed files with 36 additions and 155 deletions

View file

@ -743,6 +743,14 @@ rb_Integer(val)
return f_integer(Qnil, val);
}
int
rb_obj2int(obj)
VALUE obj;
{
VALUE i = f_integer(Qnil, obj);
return NUM2INT(i);
}
static VALUE
to_flo(val)
VALUE val;