X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=tabix.git;a=blobdiff_plain;f=TabixReader.java;h=0d359c5968ef218020b22bf3394fb049da16fcf6;hp=5874202581ee8bf72f4b0c3917a743f59c40c03e;hb=HEAD;hpb=3be5ff47495762af7f2ebec145bc8f9c7674593d diff --git a/TabixReader.java b/TabixReader.java index 5874202..0d359c5 100644 --- a/TabixReader.java +++ b/TabixReader.java @@ -231,7 +231,7 @@ public class TabixReader 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;