Skip to content

Commit

Permalink
Restore NEVER
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Rabinowitz committed Feb 12, 2024
1 parent 2e13245 commit 257901c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/h3lib/lib/polyfill.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ void iterStepPolygonCompact(IterCellsPolygonCompact *iter) {
&(iter->_polygon->geoloop.verts[0]), cellRes,
&polygonCell);
if (NEVER(polygonCellErr != E_SUCCESS)) {
// This should be unreachable with the bboxContains
// check
// This should be unreachable with the bbox check
iterErrorPolygonCompact(iter, polygonCellErr);
return;
}
Expand All @@ -488,7 +487,7 @@ void iterStepPolygonCompact(IterCellsPolygonCompact *iter) {
}
BBox bbox;
H3Error bboxErr = cellToBBox(cell, &bbox, false);
if ((bboxErr != E_SUCCESS)) {
if (NEVER(bboxErr != E_SUCCESS)) {
// Should be unreachable - invalid cells would be caught in
// the previous boundaryErr
iterErrorPolygonCompact(iter, bboxErr);
Expand Down

0 comments on commit 257901c

Please sign in to comment.