Skip to content

math.big: is_power_of_2() is false for negatives too, add test#24619

Merged
spytheman merged 1 commit into
vlang:masterfrom
tankf33der:pow2_positive
May 31, 2025
Merged

math.big: is_power_of_2() is false for negatives too, add test#24619
spytheman merged 1 commit into
vlang:masterfrom
tankf33der:pow2_positive

Conversation

@tankf33der

Copy link
Copy Markdown
Contributor

is_power_of_2() must be false for negatives.
Lets fix it.
Prove from julia-lang.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22980

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman spytheman merged commit b19fa76 into vlang:master May 31, 2025
70 checks passed
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