-
Notifications
You must be signed in to change notification settings - Fork 485
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
Bug fixes for compactCells #558
Bug fixes for compactCells #558
Conversation
// algorithm below may encounter undefined behavior | ||
// because it expects to have set the reserved bits | ||
// itself. | ||
if (H3_GET_RESERVED_BITS(currIndex) != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required, but I wonder if it would make sense to do this kind of validity check first, and fail faster? We could do this without allocating any memory we need to free, and it wouldn't change the complexity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd leave that to a separate PR with benchmarks to say
Co-authored-by: Nick Rabinowitz <public@nickrabinowitz.com>
Based upon #553. This updates the fuzzer, and applies some cases found via fuzzing to the test suite.