Skip to content

Commit

Permalink
nocov new internal_error
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Sep 26, 2024
1 parent 416a2ae commit 00235aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dogroups.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ SEXP dogroups(SEXP dt, SEXP dtcols, SEXP groups, SEXP grpcols, SEXP jiscols, SEX
// using <- in j (which is valid, useful and tested), they are repointed to the .SD cols for each group.
SEXP names = PROTECT(getAttrib(SDall, R_NamesSymbol)); nprotect++;
if (length(names) != length(SDall))
internal_error(__func__, "length(names)!=length(SD)");
internal_error(__func__, "length(names)!=length(SD)"); // # nocov
SEXP *nameSyms = (SEXP *)R_alloc(length(names), sizeof(SEXP));

for(int i=0; i<length(SDall); ++i) {
Expand All @@ -154,7 +154,7 @@ SEXP dogroups(SEXP dt, SEXP dtcols, SEXP groups, SEXP grpcols, SEXP jiscols, SEX

SEXP xknames = PROTECT(getAttrib(xSD, R_NamesSymbol)); nprotect++;
if (length(xknames) != length(xSD))
internal_error(__func__, "length(xknames)!=length(xSD)");
internal_error(__func__, "length(xknames)!=length(xSD)"); // # nocov
SEXP *xknameSyms = (SEXP *)R_alloc(length(xknames), sizeof(SEXP));
for(int i=0; i<length(xSD); ++i) {
if (SIZEOF(VECTOR_ELT(xSD, i))==0)
Expand Down

0 comments on commit 00235aa

Please sign in to comment.