r558: dp_max no less than dp_score

This commit is contained in:
Heng Li 2017-11-08 10:06:10 -05:00
parent bcf8462d20
commit 98ba8928c6
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ static void mm_update_extra(mm_reg1_t *r, const uint8_t *qseq, const uint8_t *qu
toff += len;
}
}
p->dp_max = max;
p->dp_max = max > p->dp_score? max : p->dp_score;
assert(qoff == r->qe - r->qs && toff == r->re - r->rs);
}

2
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h"
#include "getopt.h"
#define MM_VERSION "2.4-r557-dirty"
#define MM_VERSION "2.4-r558-dirty"
#ifdef __linux__
#include <sys/resource.h>