r1150: the prev impl counted one less submer

This commit is contained in:
Heng Li 2022-10-21 21:00:22 -04:00
parent c2f07ff2ac
commit b0b199f503
2 changed files with 2 additions and 2 deletions

2
main.c
View File

@ -7,7 +7,7 @@
#include "mmpriv.h"
#include "ketopt.h"
#define MM_VERSION "2.24-r1149-dirty"
#define MM_VERSION "2.24-r1150-dirty"
#ifdef __linux__
#include <sys/resource.h>

View File

@ -176,7 +176,7 @@ void mm_sketch_syncmer(void *km, const char *str, int len, int smer, int k, uint
if (l >= k && kmer_span < 256) {
uint64_t x, min = UINT64_MAX;
x = hash64(kmer[z], mask);
for (j = 0; j < k - smer; ++j) {
for (j = 0; j <= k - smer; ++j) {
uint64_t y = x >> (j + j) & smask;
min = min < y? min : y;
}