Closed jogly closed 2 years ago
It looks like around h3Index.c line 344 it tries to take the parent of a res 0 cell at res -1 (res -1 was calculated on line 325), which is where the failure is coming from.
I'm uncertain of this solution, but it passes existing tests and the new failing test.
Basically if the compaction process reaches a base cell, we skip the parent reserved-bit-hit processing and move on to the rest of the logic.
Children of a res 0 cell should compact back to that cell successfully.