Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Jan 4, 2024
1 parent 72fa61b commit a335125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ bool is_double(std::string x) {
// [[Rcpp::export]]
Rcpp::LogicalVector is_charnum(Rcpp::CharacterVector x) {
Rcpp::LogicalVector out(x.size());
for (size_t i = 0; i < x.size(); ++i) {
for (R_xlen_t i = 0; i < x.size(); ++i) {
out[i] = is_double(Rcpp::as<std::string>(x[i]));
}
return out;
Expand Down

0 comments on commit a335125

Please sign in to comment.