diff --git a/ksw.c b/ksw.c index 742fec9..4cbcb32 100644 --- a/ksw.c +++ b/ksw.c @@ -492,10 +492,10 @@ int ksw_global(int qlen, const uint8_t *query, int tlen, const uint8_t *target, uint8_t d; // direction p->h = h1; h += q[j]; - d = h > e? 0 : 1; - h = h > e? h : e; - d = h > f? d : 2; - h = h > f? h : f; + d = h >= e? 0 : 1; + h = h >= e? h : e; + d = h >= f? d : 2; + h = h >= f? h : f; h1 = h; h -= gapoe; e -= gape; diff --git a/main.c b/main.c index 636f818..7648310 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ #include "utils.h" #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION "0.6.2-r300-beta" +#define PACKAGE_VERSION "0.6.2-r301-beta" #endif static int usage()