r719: fixed bad memory access
This commit is contained in:
parent
24a4808826
commit
83c57a9d98
2
align.c
2
align.c
|
|
@ -46,7 +46,7 @@ static inline void update_max_zdrop(int32_t score, int i, int j, int32_t *max, i
|
|||
static int mm_test_zdrop(void *km, const mm_mapopt_t *opt, const uint8_t *qseq, const uint8_t *tseq, uint32_t n_cigar, uint32_t *cigar, const int8_t *mat)
|
||||
{
|
||||
uint32_t k;
|
||||
int32_t score = 0, max = 0, max_i = -1, max_j = -1, i = 0, j = 0, max_zdrop = 0;
|
||||
int32_t score = 0, max = INT32_MIN, max_i = -1, max_j = -1, i = 0, j = 0, max_zdrop = 0;
|
||||
int pos[2][2] = {{-1, -1}, {-1, -1}}, q_len, t_len;
|
||||
|
||||
// find the score and the region where score drops most along diagonal
|
||||
|
|
|
|||
Loading…
Reference in New Issue