]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeracheckcommand.cpp
started work on sffinfo command. fixed bug across all paralellized commands if the...
[mothur.git] / chimeracheckcommand.cpp
index 25f9c0fe4fa68425b9fcf6f407357fbc79027cfb..098896ef6d0ce514c394d677090ba2e38888de84 100644 (file)
@@ -338,7 +338,7 @@ int ChimeraCheckCommand::execute(){
                                        }
                                                                        
                                }else{
-                                       vector<int> positions;
+                                       vector<unsigned long int> positions;
                                        processIDS.resize(0);
                                        
                                        ifstream inFASTA;
@@ -348,7 +348,7 @@ int ChimeraCheckCommand::execute(){
                                        while(!inFASTA.eof()){
                                                input = getline(inFASTA);
                                                if (input.length() != 0) {
-                                                       if(input[0] == '>'){    long int pos = inFASTA.tellg(); positions.push_back(pos - input.length() - 1);  }
+                                                       if(input[0] == '>'){    unsigned long int pos = inFASTA.tellg(); positions.push_back(pos - input.length() - 1); }
                                                }
                                        }
                                        inFASTA.close();
@@ -358,7 +358,7 @@ int ChimeraCheckCommand::execute(){
                                        int numSeqsPerProcessor = numSeqs / processors;
                                        
                                        for (int j = 0; j < processors; j++) {
-                                               long int startPos = positions[ j * numSeqsPerProcessor ];
+                                               unsigned long int startPos = positions[ j * numSeqsPerProcessor ];
                                                if(j == processors - 1){
                                                        numSeqsPerProcessor = numSeqs - j * numSeqsPerProcessor;
                                                }