]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeraslayercommand.cpp
started work on sffinfo command. fixed bug across all paralellized commands if the...
[mothur.git] / chimeraslayercommand.cpp
index ae98ff3075e691e0db5c5fcedd288f10da14cb9f..74fd3aa7cc2be4707146df3452415eb192a7de79 100644 (file)
@@ -357,7 +357,7 @@ int ChimeraSlayerCommand::execute(){
                                        }
                                        
                                }else{
-                                       vector<int> positions;
+                                       vector<unsigned long int> positions;
                                        processIDS.resize(0);
                                        
                                        ifstream inFASTA;
@@ -367,7 +367,7 @@ int ChimeraSlayerCommand::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();
@@ -377,7 +377,7 @@ int ChimeraSlayerCommand::execute(){
                                        int numSeqsPerProcessor = numSeqs / processors;
                                        
                                        for (int i = 0; i < processors; i++) {
-                                               long int startPos = positions[ i * numSeqsPerProcessor ];
+                                               unsigned long int startPos = positions[ i * numSeqsPerProcessor ];
                                                if(i == processors - 1){
                                                        numSeqsPerProcessor = numSeqs - i * numSeqsPerProcessor;
                                                }