Skip to content

Commit

Permalink
r435: fixed an assert failure (resolves #55)
Browse files Browse the repository at this point in the history
Not 100% sure why this doesn't happen to minimap2. Possibly due to
occurrence-aware seed weighting.
  • Loading branch information
lh3 committed Jan 28, 2022
1 parent a8f4368 commit a602165
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion krmq.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ int main(void) {
unsigned char dir[KRMQ_MAX_DEPTH]; \
int i, d = 0, cmp; \
unsigned cnt = 0; \
fake.__head.p[0] = *root_, fake.__head.p[1] = 0; \
fake = **root_, fake.__head.p[0] = *root_, fake.__head.p[1] = 0; \
if (cnt_) *cnt_ = 0; \
if (x) { \
for (cmp = -1, p = &fake; cmp; cmp = __cmp(x, p)) { \
Expand Down
2 changes: 1 addition & 1 deletion lchain.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ mg128_t *mg_lchain_rmq(int max_dist, int max_dist_inner, int bw, int max_chn_ski
}
// RMQ
lo.i = INT32_MAX, lo.y = (int32_t)a[i].y - max_dist;
hi.i = 0, hi.y = (int32_t)a[i].y;
hi.i = 0, hi.y = (int32_t)a[i].y - 1;
if ((q = krmq_rmq(lc_elem, root, &lo, &hi)) != 0) {
int32_t sc, exact, width, n_skip = 0;
int64_t j = q->i;
Expand Down
2 changes: 1 addition & 1 deletion minigraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <stdint.h>
#include "gfa.h"

#define MG_VERSION "0.15-r434-dirty"
#define MG_VERSION "0.15-r435-dirty"

#define MG_M_SPLICE 0x10
#define MG_M_SR 0x20
Expand Down

0 comments on commit a602165

Please sign in to comment.