File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5069,6 +5069,8 @@ void R_resizeVector(SEXP x, R_xlen_t newlen)
50695069 error (_ ("not a resizable vector" ));
50705070 if (newlen > XTRUELENGTH (x ))
50715071 error (_ ("'newlen' is too large" ));
5072+ if (MAYBE_SHARED (x ))
5073+ error (_ ("can't resize a vector that might be shared" ));
50725074 if (ATTRIB (x ) != R_NilValue ) {
50735075 if (getAttrib (x , R_DimSymbol ) != R_NilValue )
50745076 error (_ ("can't resize a vector with a 'dim' attribute" ));
@@ -5077,7 +5079,7 @@ void R_resizeVector(SEXP x, R_xlen_t newlen)
50775079 SEXP names = getAttrib (x , R_NamesSymbol );
50785080 if (names != R_NilValue ) {
50795081 if (MAYBE_SHARED (names ))
5080- error (_ ("can't resize 'names' might be shared" ));
5082+ error (_ ("can't resize 'names' that might be shared" ));
50815083 R_resizeVector (names , newlen );
50825084 }
50835085 }
You can’t perform that action at this time.
0 commit comments