Changelog entry marking the package released.
[tabix.git] / TabixReader.java
index 5874202581ee8bf72f4b0c3917a743f59c40c03e..0d359c5968ef218020b22bf3394fb049da16fcf6 100644 (file)
@@ -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;