diff options
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -785,7 +785,7 @@ rb_num2long(val) return Qnil; /* not reached */ default: - val = rb_Integer(val); + val = rb_to_int(val); return NUM2LONG(val); } } |