Skip to content

Commit 7082f36

Browse files
cpp11::integers na3(Rf_ScalarInteger(NA_INTEGER));
1 parent 7abccea commit 7082f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp11test/src/test-doubles.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ context("doubles-C++") {
379379
// cpp11::writable::integers na{NA_INTEGER};
380380
// cpp11::sexp na();
381381

382-
cpp11::integers na3(cpp11::as_doubles(Rf_ScalarInteger(NA_INTEGER)));
382+
cpp11::integers na3(Rf_ScalarInteger(NA_INTEGER));
383383
expect_true(na3.size() == 1);
384384
// expect_true(ISNA(na3[0]));
385385
// expect_true(cpp11::is_na<double>(na3[0]));

0 commit comments

Comments
 (0)