Skip to content

Fixnum#bit_length - uses bit inversion when the value is negative#3833

Merged
headius merged 1 commit intojruby:masterfrom
lucasallan:fixnum-bitlength
Apr 28, 2016
Merged

Fixnum#bit_length - uses bit inversion when the value is negative#3833
headius merged 1 commit intojruby:masterfrom
lucasallan:fixnum-bitlength

Conversation

@lucasallan
Copy link
Member

Making sure the behaviour matches MRI https://github.com/ruby/ruby/blob/trunk/numeric.c#L4280

Thanks @jkr2255

@headius
Copy link
Member

headius commented Apr 28, 2016

Nice!

@headius headius merged commit 85212ad into jruby:master Apr 28, 2016
@headius
Copy link
Member

headius commented Apr 28, 2016

If you haven't already, can you add a ruby/spec for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants