Skip to content

Conversation

@elshize
Copy link
Contributor

@elshize elshize commented Oct 20, 2019

  1. There were 2 assignments to a variable that was never read afterwards.

  2. To quote the C++ reference

For negative a, the behavior of a << b is undefined.

and ~0 is a negative int, so I switched it to 0u.

@lemire
Copy link
Member

lemire commented Oct 21, 2019

Fantastic!

@lemire lemire merged commit 8030e38 into fast-pack:master Oct 21, 2019
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