Skip to content

Commit

Permalink
Fix MD generation check in SAM writing (#1181)
Browse files Browse the repository at this point in the history
The existing logic checked for is_MD == 1, but
the function is called with a bitwise operator check
which does not evaluate to 1.
  • Loading branch information
tijyojwad authored Mar 19, 2024
1 parent acab057 commit 5279377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5279377

Please sign in to comment.