X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=qualityscores.cpp;h=0b7bd0625b914d8a69b298a1b0e88187ddf6757c;hb=3504e4e2feeb05aabb0c79aa42cb696522030924;hp=566b44c6bad55402fae1374aab0212547befe7cc;hpb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;p=mothur.git diff --git a/qualityscores.cpp b/qualityscores.cpp index 566b44c..0b7bd06 100644 --- a/qualityscores.cpp +++ b/qualityscores.cpp @@ -423,13 +423,13 @@ void QualityScores::updateReverseMap(vector >& reverseMap, int start try { int index = 0; - for(int i=stop-1;i>=start;i--){ + for(int i=stop-1;i>=start-1;i--){ reverseMap[index++][qScores[i]] += weight; } } catch(exception& e) { - m->errorOut(e, "QualityScores", "updateForwardMap"); + m->errorOut(e, "QualityScores", "updateReverseMap"); exit(1); } }