Skip to content

Commit

Permalink
fixed off by one issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah Wala committed Jun 18, 2015
1 parent 16f1ab3 commit f50d16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/GenomicRegion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ GenomicRegion::GenomicRegion(const std::string& reg, bam_hdr_t* h)
}

chr = tid;
pos1 = beg;
pos1 = beg+1;
pos2 = end;

}

// constructor for SnowTools::GenomicRegion that takes strings. Assumes chr string is in
Expand Down
2 changes: 1 addition & 1 deletion src/GenomicRegionCollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ GenomicRegionCollection<T>::GenomicRegionCollection(const T& gr)
template<class T>
GRC GenomicRegionCollection<T>::intersection(GRC& subject, bool ignore_strand /* false */)
{
std::vector<size_t> sub, que;
std::vector<int32_t> sub, que;
GRC out = this->findOverlaps(subject, que, sub, ignore_strand);
return out;
}
Expand Down

0 comments on commit f50d16f

Please sign in to comment.