Skip to content

Commit

Permalink
Fix compilation on Windows (#62)
Browse files Browse the repository at this point in the history
Using type `uint` makes the compilation fail on windows with RTools40.
  • Loading branch information
david-cortes authored Mar 27, 2021
1 parent aa27867 commit 4f19439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <RcppArmadillo.h>

// [[Rcpp::export]]
arma::Mat<double> c_nnls_double(const arma::mat& x, const arma::vec& y, uint max_iter,
arma::Mat<double> c_nnls_double(const arma::mat& x, const arma::vec& y, unsigned int max_iter,
double rel_tol) {
auto n = y.size();
Rcpp::NumericVector res(n);
Expand Down

0 comments on commit 4f19439

Please sign in to comment.