Skip to content

Commit 9e635d6

Browse files
authored
apply Jans loop suggestion
1 parent 13a8b7d commit 9e635d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frollapply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ SEXP setgrowable(SEXP x) {
8484
return x;
8585
} else {
8686
// # nocov start ## does not seem to be reported to codecov most likely due to running in a fork, I manually debugged that it is being called when running froll.Rraw
87-
for (R_xlen_t i = 0; i < xlength(x); ++i) {
87+
for (int i = 0; i < LENGTH(x); i++) {
8888
//Rprintf("%d",3); // manual code coverage to confirm it is reached when marking nocov
8989
SEXP this = VECTOR_ELT(x, i);
9090
if (ALTREP(this)) internal_error(__func__, "frollapply's adaptive=T setgrowable should have not been called with an ALTREP input"); // # nocov

0 commit comments

Comments
 (0)