Skip to content

Commit d217eee

Browse files
committed
add nocov
1 parent 8e50f9b commit d217eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assign.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static int _selfrefok(SEXP x, Rboolean checkNames, Rboolean verbose) {
133133
// because R copies the original vector's tl over despite allocating length.
134134
prot = R_ExternalPtrProtected(v);
135135
if (TYPEOF(prot) != EXTPTRSXP) { // Very rare. Was error(_(".internal.selfref prot is not itself an extptr")).
136-
UNPROTECT(2);
136+
UNPROTECT(2); // # nocov
137137
return 0; // # nocov ; see http://stackoverflow.com/questions/15342227/getting-a-random-internal-selfref-error-in-data-table-for-r
138138
}
139139
if (x!=R_ExternalPtrAddr(prot) && !ALTREP(x))

0 commit comments

Comments
 (0)