Skip to content

Commit 83c57a9

Browse files
committed
r719: fixed bad memory access
1 parent 24a4808 commit 83c57a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

align.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static inline void update_max_zdrop(int32_t score, int i, int j, int32_t *max, i
4646
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)
4747
{
4848
uint32_t k;
49-
int32_t score = 0, max = 0, max_i = -1, max_j = -1, i = 0, j = 0, max_zdrop = 0;
49+
int32_t score = 0, max = INT32_MIN, max_i = -1, max_j = -1, i = 0, j = 0, max_zdrop = 0;
5050
int pos[2][2] = {{-1, -1}, {-1, -1}}, q_len, t_len;
5151

5252
// find the score and the region where score drops most along diagonal

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "mmpriv.h"
77
#include "getopt.h"
88

9-
#define MM_VERSION "2.8-r718-dirty"
9+
#define MM_VERSION "2.8-r719-dirty"
1010

1111
#ifdef __linux__
1212
#include <sys/resource.h>

0 commit comments

Comments
 (0)