diff options
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |