Skip to content

Commit 1e351d3

Browse files
committed
Mark internal errors as # nocov
1 parent 9d3eee1 commit 1e351d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,9 @@ SEXP R_duplicateAsResizable_(SEXP x) {
678678

679679
void R_resizeVector_(SEXP x, R_xlen_t newlen) {
680680
if (!R_isResizable(x))
681-
internal_error(__func__, "attempt to resize a non-resizable vector");
681+
internal_error(__func__, "attempt to resize a non-resizable vector"); // # nocov
682682
if (newlen > XTRUELENGTH(x))
683-
internal_error(__func__, "newlen=%g exceeds maxlen=%g", (double)newlen, (double)R_maxLength(x));
683+
internal_error(__func__, "newlen=%g exceeds maxlen=%g", (double)newlen, (double)R_maxLength(x)); // # nocov
684684
SETLENGTH(x, newlen);
685685
}
686686
#endif

0 commit comments

Comments
 (0)