Skip to content

Commit

Permalink
get rid of warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausVigo committed Feb 8, 2019
1 parent bc82fcd commit 487c960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/phangorn_help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ int give_index3(int i, int j, int n)

void copheneticHelpCpp(std::vector<int> left, std::vector<int> right, int h, NumericVector nh, int nTips, NumericVector dm){
int ind;
for(int i=0; i<left.size(); i++){
for(int j=0; j<right.size(); j++){
for(std::size_t i=0; i<left.size(); i++){
for(std::size_t j=0; j<right.size(); j++){
ind = give_index3(left[i], right[j], nTips);
dm[ind] = 2.0*nh[h] - nh[left[i]-1L] - nh[right[j]-1L];
}
Expand Down

0 comments on commit 487c960

Please sign in to comment.