r880: fixed false wrong FASTA/Q alert

This commit is contained in:
Heng Li 2018-11-05 20:52:07 -05:00
parent 83dfdd5f50
commit 3db5bfe6e5
2 changed files with 2 additions and 2 deletions

2
bseq.c
View File

@ -110,7 +110,7 @@ mm_bseq1_t *mm_bseq_read3(mm_bseq_file_t *fp, int chunk_size, int with_qual, int
break;
}
}
if (ret != -1)
if (ret < -1)
fprintf(stderr, "[WARNING]\033[1;31m wrong FASTA/FASTQ record. Continue anyway.\033[0m\n");
*n_ = a.n;
return a.a;

2
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h"
#include "ketopt.h"
#define MM_VERSION "2.13-r877-dirty"
#define MM_VERSION "2.13-r880-dirty"
#ifdef __linux__
#include <sys/resource.h>