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

Handle UB in bit_scan_forward #20

Merged
merged 1 commit into from
Nov 29, 2015
Merged

Handle UB in bit_scan_forward #20

merged 1 commit into from
Nov 29, 2015

Conversation

matwey
Copy link
Contributor

@matwey matwey commented Nov 29, 2015

Commit 37ece8e introduced UB into bit_scan_forward
when called with zero agrument.

Check m_type == UNDEFINED explicitly in to_type()
Also replace bit_scan_forward return type to int to avoid double conversion.

Commit 37ece8e introduced UB into bit_scan_forward
when called with zero agrument.

Check m_type == UNDEFINED explicitly in to_type()
Also replace bit_scan_forward return type to int to avoid double conevtion.
saleyn added a commit that referenced this pull request Nov 29, 2015
Handle UB in bit_scan_forward
@saleyn saleyn merged commit fbb064f into saleyn:master Nov 29, 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