Skip to content

Commit

Permalink
fixed a bug found by Pierre Lindenbaum
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng Li committed Sep 23, 2011
1 parent 5591e36 commit a089031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TabixReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private TIntv getIntv(final String s) {
if (col == mSc) {
intv.tid = chr2tid(s.substring(beg, end));
} else if (col == mBc) {
intv.beg = intv.end = Integer.parseInt(s.substring(beg, end));
intv.beg = intv.end = Integer.parseInt(s.substring(beg, end==-1?s.length():end));
if ((mPreset&0x10000) != 0) ++intv.end;
else --intv.beg;
if (intv.beg < 0) intv.beg = 0;
Expand Down

0 comments on commit a089031

Please sign in to comment.