Skip to content

Commit d796a2a

Browse files
committed
Fixed unit tests
1 parent 3f90f02 commit d796a2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inst/include/Rcpp/Nullable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ namespace Rcpp {
124124
/**
125125
* Return a clone of m_sexp as a T
126126
*/
127-
inline T clone() const { return Rcpp::clone(as()); }
127+
inline T clone() const { return Rcpp::clone(Rcpp::as< T >(get())); }
128128

129129
private:
130130
SEXP m_sexp;

inst/unitTests/runit.misc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ if (.runThisTest) {
191191
checkEquals( testNullableAs(M), M )
192192
}
193193

194-
test.NullableAccessAs <- function() {
194+
test.NullableAccessClone <- function() {
195195
M <- matrix(1:4, 2, 2)
196196
checkEquals( testNullableClone(M), M )
197197
}

0 commit comments

Comments
 (0)