Skip to content

Commit

Permalink
Fix bug with piles retrieval by using long long ints
Browse files Browse the repository at this point in the history
  • Loading branch information
morispi committed Feb 20, 2019
1 parent 4b7595a commit 6766933
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CONSENT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void indexReads(std::map<std::string, std::vector<bool>>& index, std::string rea
}

std::vector<Alignment> getReadPile(std::ifstream& alignments, std::string curTpl) {
int beg, end;
long long int beg, end;
std::vector<std::string> curOffset;
std::vector<Alignment> curReadAlignments;
std::string al;
Expand All @@ -594,8 +594,8 @@ std::vector<Alignment> getReadPile(std::ifstream& alignments, std::string curTpl

for (std::string o : offsets) {
curOffset = splitString(o, ":");
beg = stoi(curOffset[0]);
end = stoi(curOffset[1]);
beg = stoll(curOffset[0]);
end = stoll(curOffset[1]);
alignments.seekg(beg, alignments.beg);

while (alignments.tellg() < end) {
Expand Down

0 comments on commit 6766933

Please sign in to comment.