]> git.donarmstrong.com Git - bamtools.git/commitdiff
Fixed off-by-one error in BamAlignment::GetEndPosition()
authorDerek <derekwbarnett@gmail.com>
Mon, 13 Sep 2010 18:50:05 +0000 (14:50 -0400)
committerDerek <derekwbarnett@gmail.com>
Mon, 13 Sep 2010 18:50:05 +0000 (14:50 -0400)
src/api/BamAux.h

index 2c1c7acad4c1613be0b302dec2b691b3e6b4464e..c8a658570e7e5b15b6f861447d4af706096fc37b 100644 (file)
@@ -3,7 +3,7 @@
 // Marth Lab, Department of Biology, Boston College\r
 // All rights reserved.\r
 // ---------------------------------------------------------------------------\r
-// Last modified: 10 September 2010 (DB)\r
+// Last modified: 13 September 2010 (DB)\r
 // ---------------------------------------------------------------------------\r
 // Provides the basic constants, data structures, etc. for using BAM files\r
 // ***************************************************************************\r
@@ -435,7 +435,7 @@ int BamAlignment::GetEndPosition(bool usePadded) const {
             alignEnd += (*cigarIter).Length;\r
         }\r
     }\r
-    return alignEnd;\r
+    return alignEnd - 1;\r
 }\r
 \r
 inline\r