This is a bit silly, but in the name of compatibility...
The following example:
(2**64)[2**32]
{nofarmat}
returns 0 in MRI, Rubinius.
But raises an exception in JRuby:
RangeError: integer 4294967295 too big to convert to `int'
This leads to one rubinius spec failure for bignum.
The proposed patch fixes the problem, and the spec failure.
Description
This is a bit silly, but in the name of compatibility...
The following example:
(2**64)[2**32]
{nofarmat}
returns 0 in MRI, Rubinius.
But raises an exception in JRuby:
RangeError: integer 4294967295 too big to convert to `int'
This leads to one rubinius spec failure for bignum.
The proposed patch fixes the problem, and the spec failure.