X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurmetastats.cpp;fp=mothurmetastats.cpp;h=c376218ce7332d18c17c336b683fedea17fab4da;hb=1bf53bca7e26bf091588bc8ca6e68cbfae1df6fe;hp=ed0aaef8b4a8025baa4619d7199a1b2033131152;hpb=19fcbbdba99658f5eca244803280f9ee7f9f6607;p=mothur.git diff --git a/mothurmetastats.cpp b/mothurmetastats.cpp index ed0aaef..c376218 100644 --- a/mothurmetastats.cpp +++ b/mothurmetastats.cpp @@ -452,8 +452,8 @@ int MothurMetastats::calc_twosample_ts(vector& Pmatrix, int secondGroupi for (int i = 0; i < C1.size(); i++) { C1[i].resize(3, 0.0); } vector< vector > C2; C2.resize(row); for (int i = 0; i < C2.size(); i++) { C2[i].resize(3, 0.0); } - vector storage; storage.resize(row, 0.0); - vector tool; tool.resize(row, 0.0); + vector storage; storage.resize(a, 0.0); + vector tool; tool.resize(a, 0.0); double xbardiff = 0.0; double denom = 0.0; meanvar(Pmatrix, secondGroupingStart, storage);