Merged
Conversation
Closed
isaacbrodsky
approved these changes
Apr 20, 2026
Comment on lines
+512
to
+514
| if(ENABLE_COVERAGE) | ||
| target_compile_definitions(${name} PRIVATE H3_COVERAGE_TEST=1) | ||
| endif() |
Collaborator
There was a problem hiding this comment.
This is needed because some of the test executables call coordijk.h code directly?
Collaborator
Author
There was a problem hiding this comment.
Yeah, it's called from these:
- testCoordIjkInternal.c
- fuzzerInternalCoordIjk.c
justinhwang
approved these changes
Apr 21, 2026
nrabinowitz
reviewed
Apr 22, 2026
| // edge-crossing vertices as needed | ||
| g->numVerts = 0; | ||
| FaceIJK lastFijk; | ||
| FaceIJK lastFijk = {0}; |
Collaborator
There was a problem hiding this comment.
For my info, what's the difference here?
Collaborator
Author
There was a problem hiding this comment.
The previous build was just complaining about potentially using it uninitialized: https://github.com/uber/h3/actions/runs/24574942537/job/71857687680#step:6:82
But it's a false positive from moving this to the header; lastFijk is always initialized before use. This just silences the warning.
nrabinowitz
approved these changes
Apr 22, 2026
Collaborator
nrabinowitz
left a comment
There was a problem hiding this comment.
LGTM - I didn't go over the code in detail, assuming that this was pure lift/shift rather than editing
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same as #1148, but cleaner git history.
Benchmarks comparing this PR to the current master, run with https://github.com/ajfriend/h3-index-bench: