From: peterjc Date: Fri, 30 Mar 2012 16:39:32 +0000 (+0100) Subject: Fixed the next silly error on that line. X-Git-Url: https://git.donarmstrong.com/?p=samtools.git;a=commitdiff_plain;h=62254fe022c4c69988c2a71dabf93f90d93e0014;hp=d2496f2aaae8022e04d10b9fd09eb305026a77df Fixed the next silly error on that line. --- diff --git a/padding.c b/padding.c index 6e40833..a093d45 100644 --- 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_CDEL) && (post_op == BAM_CMATCH || post_op == BAM_CDEL)) { /* This is a redundant P operator */ cigar2[i-1] = 0; // i.e. 0M /* If had same operator either side, combine them in post_op */