Skip to content

Commit 6777191

Browse files
comment
1 parent aab8714 commit 6777191

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
@@ -551,7 +551,7 @@ SEXP assign(SEXP dt, SEXP rows, SEXP cols, SEXP newcolnames, SEXP values)
551551
if ( MAYBE_SHARED(thisvalue) || // set() protects the NAMED of atomic vectors from .Call setting arguments to 2 by wrapping with list
552552
(TYPEOF(values)==VECSXP && i>LENGTH(values)-1) || // recycled RHS would have columns pointing to others, #185.
553553
(TYPEOF(values)!=VECSXP && i>0) || // assigning the same values to a second column. Have to ensure a copy #2540
554-
ALTREP(thisvalue)
554+
ALTREP(thisvalue) // Some ALTREP wrappers have survived to here, e.g. #5400
555555
) {
556556
if (verbose) {
557557
Rprintf(_("RHS for item %d has been duplicated because MAYBE_REFERENCED==%d MAYBE_SHARED==%d ALTREP==%d, but then is being plonked. length(values)==%d; length(cols)==%d\n"),

0 commit comments

Comments
 (0)