GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Added check if integer#round method parameter isn't too big to be converted to int.
Added range check in integer#round method
MRI has numerous areas where it uses values that exceed a Fixnum but fit into a machine integer. In general, these are implementation details of MRI.
In cases like the index of a String or Array, Rubinius already simply requires a Fixnum. In this case, the exception doesn't alter Integer#round behavior for any value that is valid on MRI. The spec should be change to deviates_on :rubinius.
The tag deletion for "Integer#round returns 0 if passed a big negative value" has nothing to do with the change in this commit.