mirror of
https://github.com/lh3/minimap2.git
synced 2026-09-22 12:38:11 +08:00
Fix MD generation check in SAM writing (#1181)
The existing logic checked for is_MD == 1, but the function is called with a bitwise operator check which does not evaluate to 1.
This commit is contained in:
@@ -310,7 +310,7 @@ static void write_cs_ds_or_MD(void *km, kstring_t *s, const mm_idx_t *mi, const
|
||||
}
|
||||
}
|
||||
}
|
||||
if (is_MD == 1) write_MD_core(s, tseq, qseq, r, tmp, write_tag);
|
||||
if (is_MD) write_MD_core(s, tseq, qseq, r, tmp, write_tag);
|
||||
else write_cs_ds_core(s, tseq, qseq, r, tmp, no_iden, is_ds, write_tag);
|
||||
kfree(km, qseq); kfree(km, tseq); kfree(km, tmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user