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

fix nextpow2 for 8, 16, and 32bit integers #12414

Merged
merged 1 commit into from
Jul 31, 2015

Conversation

bicycle1885
Copy link
Member

I've found the following strange behavior:

julia> nextpow2(Int32(42))
0

julia> nextpow2(UInt32(42))
0x00000000

The nextpow2 doesn't work for integers less than 64 bits.
This pull request will fix that.

@JeffBezanson
Copy link
Member

Thanks!

JeffBezanson added a commit that referenced this pull request Jul 31, 2015
fix nextpow2 for 8, 16, and 32bit integers
@JeffBezanson JeffBezanson merged commit 0360a3a into JuliaLang:master Jul 31, 2015
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

Successfully merging this pull request may close these issues.

2 participants