]> git.donarmstrong.com Git - samtools.git/commitdiff
Fix silly typo
authorpeterjc <p.j.a.cock@googlemail.com>
Fri, 30 Mar 2012 16:35:38 +0000 (17:35 +0100)
committerpeterjc <p.j.a.cock@googlemail.com>
Tue, 19 Jun 2012 14:54:50 +0000 (15:54 +0100)
padding.c

index b80463fe80cd7222507b081f56990be97a21e32e..6e40833c9a7b20b24029b75f87b504f3503330d2 100644 (file)
--- a/padding.c
+++ b/padding.c
@@ -136,7 +136,7 @@ int bam_pad2unpad(bamFile in, bamFile out)
                                        pre_op = bam_cigar_op(cigar2[i-2]);
                                        post_op = bam_cigar_op(cigar2[i]);
                                        /* Note don't need to check for X/= as code above will use M only */
-                                       if ((pre_op == BAM_CMATCH || pre_op == BAM_CDIFF) || (post_op == BAM_CMATCH || post_op == BAM_CDIFF)) {
+                                       if ((pre_op == BAM_CMATCH || pre_op == BAM_CDIFF) && (post_op == BAM_CMATCH || post_op == BAM_CDIFF)) {
                                                /* This is a redundant P operator */
                                                cigar2[i-1] = 0; // i.e. 0M
                                                /* If had same operator either side, combine them in post_op */