Skip to content

Commit

Permalink
Rcpp::NumericVector.size() returns int
Browse files Browse the repository at this point in the history
  • Loading branch information
mnwright committed Jan 8, 2018
1 parent 3155dd8 commit 615a64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilityRcpp.cpp
Expand Up @@ -33,7 +33,7 @@ Germany
Rcpp::IntegerVector numSmaller(Rcpp::NumericVector values, Rcpp::NumericVector reference) {
std::sort(reference.begin(), reference.end());
Rcpp::IntegerVector result(values.size());
for (size_t i = 0; i < values.size(); ++i)
for (int i = 0; i < values.size(); ++i)
result[i] = std::lower_bound(reference.begin(), reference.end(), values[i]) - reference.begin();
return result;
}

0 comments on commit 615a64c

Please sign in to comment.