r131: wrong EOF test; make mb_size <= batch_size

This commit is contained in:
Heng Li
2017-07-01 09:26:09 -04:00
parent d4301736b8
commit a9f089f0aa
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ bseq1_t *bseq_read(bseq_file_t *fp, int chunk_size, int with_qual, int *n_)
size += seqs[n++].l_seq;
if (size >= chunk_size) break;
}
if (n == 0) fp->is_eof = 1;
if (size < chunk_size) fp->is_eof = 1;
*n_ = n;
return seqs;
}