Skip to content

Commit

Permalink
add nocov
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-schwen committed Dec 2, 2024
1 parent 8e50f9b commit d217eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assign.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static int _selfrefok(SEXP x, Rboolean checkNames, Rboolean verbose) {
// because R copies the original vector's tl over despite allocating length.
prot = R_ExternalPtrProtected(v);
if (TYPEOF(prot) != EXTPTRSXP) { // Very rare. Was error(_(".internal.selfref prot is not itself an extptr")).
UNPROTECT(2);
UNPROTECT(2); // # nocov
return 0; // # nocov ; see http://stackoverflow.com/questions/15342227/getting-a-random-internal-selfref-error-in-data-table-for-r
}
if (x!=R_ExternalPtrAddr(prot) && !ALTREP(x))
Expand Down

0 comments on commit d217eee

Please sign in to comment.