From 5279377544a36f690e8aa34fec856c6106d259e5 Mon Sep 17 00:00:00 2001 From: Joyjit Daw <1127155+tijyojwad@users.noreply.github.com> Date: Tue, 19 Mar 2024 19:20:21 -0400 Subject: [PATCH] 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. --- format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.c b/format.c index d00a96d4..15c1864e 100644 --- a/format.c +++ b/format.c @@ -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); }