X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=sharedchao1.cpp;h=8d47ad2fca1d307bd150a985224b1099e492626a;hb=050a3ff02473a3d4c0980964e1a9ebe52e55d6b8;hp=d8cf60bf0cfe67097bcdadc8025ffc5829af6354;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0;p=mothur.git diff --git a/sharedchao1.cpp b/sharedchao1.cpp index d8cf60b..8d47ad2 100644 --- a/sharedchao1.cpp +++ b/sharedchao1.cpp @@ -29,7 +29,7 @@ EstOutput SharedChao1::getValues(vector shared){ //create and initialize trees to 0. initialTree(numGroups); - for (int i = 0; i < shared[0]->size(); i++) { + for (int i = 0; i < shared[0]->getNumBins(); i++) { //get bin values and calc shared bool sharedByAll = true; temp.clear();