Skip to content

Commit

Permalink
drop cast to signed
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebaron committed Mar 9, 2017
1 parent e80550e commit 8b1b49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devtran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Rcpp::List DEVTRAN(const Rcpp::List parin,

if(tgridi.size() == 0) tgridi = Rcpp::rep(0,NID);

if(tgridi.size() < (signed) NID) CRUMP("Length of design indicator less than NID.");
if(tgridi.size() < NID) CRUMP("Length of design indicator less than NID.");

if(max(tgridi) >= tgrid.ncol()) {
Rcpp::stop("Insufficient number of designs specified for this problem.");
Expand Down

0 comments on commit 8b1b49c

Please sign in to comment.