mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
1.1b9_12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5a1e96b22a
commit
4dd5679cbb
8 changed files with 36 additions and 155 deletions
8
object.c
8
object.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue