Skip to content

Commit

Permalink
unsigned - signed comparison compiler remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed May 26, 2020
1 parent edd4c7a commit 2f3e8f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion BTM.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace
2 changes: 1 addition & 1 deletion src/doc.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Doc {
const vector<int>& get_ws() const {return ws;}

const int get_w(int i) const {
assert(i < ws.size());
assert(i < ((int)ws.size()));
return ws[i];
}

Expand Down
4 changes: 2 additions & 2 deletions src/pvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ class Pvec {
T &operator[](int i) {
if (i >= (int)p.size())
Rcpp::Rcout << "ERR: index=" << i << ", size=" << p.size() << endl;
assert(i < p.size());
assert(i < ((int)p.size()));
return p[i];
}

const T& operator[](int i) const{assert(i<p.size()); return p[i];}
const T& operator[](int i) const{assert(i<((int)p.size())); return p[i];}

Pvec<T> operator+(const T & v){
Pvec<T> tp(p.size());
Expand Down

0 comments on commit 2f3e8f4

Please sign in to comment.