X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedchao1.cpp;fp=sharedchao1.cpp;h=8d47ad2fca1d307bd150a985224b1099e492626a;hb=53171f07cc0c0e560e2b4ba2946f690d59fc2dc4;hp=d8cf60bf0cfe67097bcdadc8025ffc5829af6354;hpb=8da8321bc4d705f6c156248d6229c60a0204f750;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();