From 4f194390f5729ee811c1c73ac3ad492df92a491b Mon Sep 17 00:00:00 2001 From: david-cortes Date: Sat, 27 Mar 2021 08:17:34 +0200 Subject: [PATCH] Fix compilation on Windows (#62) Using type `uint` makes the compilation fail on windows with RTools40. --- src/nnls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnls.cpp b/src/nnls.cpp index 1cb30db..bb975f6 100644 --- a/src/nnls.cpp +++ b/src/nnls.cpp @@ -2,7 +2,7 @@ #include // [[Rcpp::export]] -arma::Mat c_nnls_double(const arma::mat& x, const arma::vec& y, uint max_iter, +arma::Mat 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);