We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d559fb8 commit a726da7Copy full SHA for a726da7
inst/unitTests/cpp/ListOf.cpp
@@ -83,9 +83,14 @@ NVList test_binary_ops(NVList x) {
83
);
84
}
85
86
-// [[Rcpp::export]]
87
-R_xlen_t test_sub_calls(NVList x) {
88
- R_xlen_t sz = x[0].size() + x[1].size() + x[2].size();
+#if defined(_WIN32)
+typedef int retval;
+#else
89
+typedef R_xlen_t retval;
90
+#endif
91
+// [[Rcpp::export]]
92
+retval test_sub_calls(NVList x) {
93
+ retval sz = x[0].size() + x[1].size() + x[2].size();
94
return sz;
95
96
0 commit comments