Issue #2495 has been updated by Keiju Ishitsuka.

Status changed from Open to Closed

I think that there is not the necessity to change.
However, I acknowledge that it is wrong a result for Integer argument. 
And it will happen often mistake Integer pass.

I add type check for Integer only.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/2495

----------------------------------------
http://redmine.ruby-lang.org