Skip to content

Commit 1c32f03

Browse files
committed
fix: add coverage exclusion for early return in estack_free_to_marker function
1 parent ca9b9a2 commit 1c32f03

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

easy_stack.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,9 @@ ESTACKDEF void estack_free_to_marker(EStack *ESTACK_RESTRICT stack, EStackMarker
14051405
"Internal Error: 'estack_free_to_marker' marker index is out of range");
14061406

14071407
if (ESTACK_UNLIKELY(decoded_index > cur_index)) {
1408+
// LCOV_EXCL_START
14081409
return;
1410+
// LCOV_EXCL_STOP
14091411
}
14101412

14111413
if (decoded_index == cur_index) return;

0 commit comments

Comments
 (0)