Skip to content

Commit 0877128

Browse files
committed
fixed issue 46
1 parent 7e1f982 commit 0877128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SeqLib/BamRecord.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,9 +639,9 @@ class BamRecord {
639639
uint32_t* c = bam_get_cigar(b);
640640
int32_t p = 0;
641641
for (size_t i = 0; i < b->core.n_cigar; ++i) {
642-
if ( (bam_cigar_opchr(c[i]) == 'S') || (bam_cigar_opchr(c[i]) == 'H'))
642+
if (bam_cigar_opchr(c[i]) == 'S')
643643
p += bam_cigar_oplen(c[i]);
644-
else // not a clip, so stop counting
644+
else if (bam_cigar_opchr(c[i]) != 'H')
645645
break;
646646
}
647647
return p;

0 commit comments

Comments
 (0)