]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/BamAux.h
Reimplemented BamToolsIndex for bug fix and performance upgrade. *** NOTE *** This...
[bamtools.git] / src / api / BamAux.h
index 057568e31ea8c12ad035b8c0393bb79d748a55ce..2c1c7acad4c1613be0b302dec2b691b3e6b4464e 100644 (file)
@@ -3,7 +3,7 @@
 // Marth Lab, Department of Biology, Boston College\r
 // All rights reserved.\r
 // ---------------------------------------------------------------------------\r
-// Last modified: 3 September 2010 (DB)\r
+// Last modified: 10 September 2010 (DB)\r
 // ---------------------------------------------------------------------------\r
 // Provides the basic constants, data structures, etc. for using BAM files\r
 // ***************************************************************************\r
@@ -274,7 +274,7 @@ struct BamRegion {
     // member functions\r
     void clear(void) { LeftRefID = -1; LeftPosition = -1; RightRefID = -1; RightPosition = -1; }\r
     bool isLeftBoundSpecified(void) const { return ( LeftRefID != -1 && LeftPosition != -1 ); }\r
-    bool isNull(void) const { return !( isLeftBoundSpecified() && isRightBoundSpecified() ); }\r
+    bool isNull(void) const { return ( !isLeftBoundSpecified() && !isRightBoundSpecified() ); }\r
     bool isRightBoundSpecified(void) const { return ( RightRefID != -1 && RightPosition != -1 ); }\r
 };\r
 \r