diff --git a/src/dists_vec.cpp b/src/dists_vec.cpp index 1791ec4..9a2b3c9 100644 --- a/src/dists_vec.cpp +++ b/src/dists_vec.cpp @@ -11,14 +11,14 @@ using namespace arma; using std::string; -static int proper_size(int nrw,int ncl){ +static R_xlen_t proper_size(R_xlen_t nrw,R_xlen_t ncl){ return ncl*(ncl-1)*0.5; } //[[Rcpp::export]] -IntegerVector index_dist_vec(const int nrw,const int ncl){ +IntegerVector index_dist_vec(const R_xlen_t nrw,const R_xlen_t ncl){ IntegerVector f(proper_size(nrw,ncl)); - int i,j,k=0; + R_xlen_t i,j,k=0; for(i=0;i(x.begin(),x.end(),log_xx.begin()); for(i=0;i(x.begin(),x.end(),log_xx.begin()); for(i=0;i