Skip to content

Commit ab1705e

Browse files
committedJan 14, 2018
check pos
1 parent c810554 commit ab1705e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎main.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ void bench_function(struct params_s *params, struct mapping_s *map, char const *
460460
bench_end(b);
461461
score += s;
462462

463-
if(s != kv_at(params->ascore, i)) {
464-
struct maxpos_s *mp = (struct maxpos_s *)params->work;
463+
maxpos_t *mp = (maxpos_t *)params->work;
464+
if(s != kv_at(params->ascore, i) || mp->apos != kv_at(params->apos, i) || mp->bpos != kv_at(params->bpos, i)) {
465465
debug("a(%s), b(%s)", kv_at(params->seq, i * 2), kv_at(params->seq, i * 2 + 1));
466466
debug("i(%llu), score(%d, %d), apos(%llu, %llu), bpos(%llu, %llu)",
467467
i, s, kv_at(params->ascore, i),

0 commit comments

Comments
 (0)
Please sign in to comment.