Skip to content

Commit 1eb51b7

Browse files
need to use double here
1 parent 3a84010 commit 1eb51b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Subset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ List subset_test_literal(List x) {
2828

2929
// [[Rcpp::export]]
3030
NumericVector subset_test_assign(NumericVector x) {
31-
x[ x > 0 ] = 0;
31+
x[ x > 0 ] = 0.0 ;
3232
return x;
3333
}

0 commit comments

Comments
 (0)