]> git.donarmstrong.com Git - bamtools.git/commitdiff
Fixed BamRegion bug: previously only checked if refID was -1, needed to make sure...
authorderek <derekwbarnett@gmail.com>
Mon, 22 Nov 2010 17:47:10 +0000 (12:47 -0500)
committerderek <derekwbarnett@gmail.com>
Mon, 22 Nov 2010 17:47:10 +0000 (12:47 -0500)
src/api/BamAux.h

index cd912846b423dff25da9889d89ad0fbb39917a1e..bc99cb7ad444a3050a52458833a1d57db2a6a220 100644 (file)
@@ -132,9 +132,9 @@ struct API_EXPORT BamRegion {
     \r
     // 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 isLeftBoundSpecified(void) const { return ( LeftRefID >= 0 && LeftPosition >= 0 ); }\r
     bool isNull(void) const { return ( !isLeftBoundSpecified() && !isRightBoundSpecified() ); }\r
-    bool isRightBoundSpecified(void) const { return ( RightRefID != -1 && RightPosition != -1 ); }\r
+    bool isRightBoundSpecified(void) const { return ( RightRefID >= 0 && RightPosition >= 0 ); }\r
 };\r
 \r
 // ----------------------------------------------------------------\r