Skip to content

RubyNumeric#intervalStepSize fails on Bignums #1296

@dmarcotte

Description

@dmarcotte

Reported here. (Thanks @tedpennings!)

An incorrect cast is causing #intervalStepSize to choke on Bignums. Running the following illustrates the issue:

jruby -e "p 5.step(2**64).size"

(About to send a pull fixing this... just wanted to get this issue in so I had something to point to in the regression test I'm adding)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions