Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bignum too big to convert into `long' #43

Open
augnustin opened this issue Jul 6, 2015 · 0 comments
Open

bignum too big to convert into `long' #43

augnustin opened this issue Jul 6, 2015 · 0 comments

Comments

@augnustin
Copy link

I got the following error bignum too big to convert intolong'`

at:

  def swapper_map(index)
    array = (0..9).to_a
    10.times.collect.with_index do |i|
      array.rotate!(index + i ^ spin).pop # array.rotate!(241241319064) generates the error
    end
  end

I'm using Rails 3.2 so I know that could be it, but I thought reporting would be useful. I'll investigate and come back if I have results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant