diff --git a/ksw2_extd2_sse.c b/ksw2_extd2_sse.c index a993a2d..b18d0cc 100644 --- a/ksw2_extd2_sse.c +++ b/ksw2_extd2_sse.c @@ -111,7 +111,7 @@ void ksw_extd2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uin for (t = 0; t < tlen_ * 16; ++t) H[t] = KSW_NEG_INF; } if (with_cigar) { - mem2 = (uint8_t*)kmalloc(km, ((qlen + tlen - 1) * n_col_ + 1) * 16); + mem2 = (uint8_t*)kmalloc(km, ((size_t)(qlen + tlen - 1) * n_col_ + 1) * 16); p = (__m128i*)(((size_t)mem2 + 15) >> 4 << 4); off = (int*)kmalloc(km, (qlen + tlen - 1) * sizeof(int) * 2); off_end = off + qlen + tlen - 1; diff --git a/main.c b/main.c index 376f18f..263eb89 100644 --- a/main.c +++ b/main.c @@ -10,7 +10,7 @@ #include "getopt.h" #endif -#define MM_VERSION "2.10-r772-dirty" +#define MM_VERSION "2.10-r773-dirty" #ifdef __linux__ #include