X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsorclass.cpp;fp=sharedsorclass.cpp;h=85609dad69311e08474a2115755d74761052ab13;hb=53171f07cc0c0e560e2b4ba2946f690d59fc2dc4;hp=32728f575a52f94c9d7b8b287fd14a7147ad53e9;hpb=8da8321bc4d705f6c156248d6229c60a0204f750;p=mothur.git diff --git a/sharedsorclass.cpp b/sharedsorclass.cpp index 32728f5..85609da 100644 --- a/sharedsorclass.cpp +++ b/sharedsorclass.cpp @@ -21,7 +21,7 @@ EstOutput SorClass::getValues(vector shared) { data.resize(1,0); - for (int i = 0; i < shared[0]->size(); i++) { + for (int i = 0; i < shared[0]->getNumBins(); i++) { //store in temps to avoid multiple repetitive function calls tempA = shared[0]->getAbundance(i); tempB = shared[1]->getAbundance(i);