Commit ab600e66 authored by Aaron Quinlan's avatar Aaron Quinlan
Browse files

Merge pull request #231 from yanlinlin82/master

Fix a crash bug (when end == -1).
parents 47bdc326 979cf77d
......@@ -124,7 +124,7 @@ void BedGenomeCoverage::AddCoverage(int start, int end) {
// make sure the coordinates fit within the chrom
if (start < _currChromSize)
if (end < _currChromSize)
if (end >= 0 && end < _currChromSize)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment