Skip to content

Commit f77b676

Browse files
fix Pairlist::update
1 parent 365d01a commit f77b676

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inst/include/Rcpp/Pairlist.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ namespace Rcpp{
4545

4646
#include <Rcpp/generated/Pairlist__ctors.h>
4747

48-
void update(SEXP){}
48+
void update(SEXP x){
49+
SET_TYPEOF( x, LISTSXP ) ;
50+
SET_TAG( x, R_NilValue ) ;
51+
}
4952
} ;
5053

5154
typedef Pairlist_Impl<PreserveStorage> Pairlist ;

0 commit comments

Comments
 (0)