Skip to content

Commit 43c294e

Browse files
authored
Merge pull request #67 from dpryan79/out_of_order_fix
Bump to 0.4.8, include changes for pointer arithmetic and also allow …
2 parents 4375bd1 + 4c39f95 commit 43c294e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bigWig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern "C" {
5656
/*!
5757
* The library version number
5858
*/
59-
#define LIBBIGWIG_VERSION 0.4.7
59+
#define LIBBIGWIG_VERSION 0.4.8
6060

6161
/*!
6262
* If 1, then this library was compiled with remote file support.

bwValues.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ static bwOverlapBlock_t *overlapsLeaf(bwRTreeNode_t *node, uint32_t tid, uint32_
135135
if(!o) return NULL;
136136

137137
for(i=0; i<node->nChildren; i++) {
138-
if(tid < node->chrIdxStart[i]) break;
139-
if(tid > node->chrIdxEnd[i]) continue;
138+
if(tid < node->chrIdxStart[i] || tid > node->chrIdxEnd[i]) continue;
140139

141140
/*
142141
The individual blocks can theoretically span multiple contigs.
@@ -162,7 +161,6 @@ static bwOverlapBlock_t *overlapsLeaf(bwRTreeNode_t *node, uint32_t tid, uint32_
162161
if(!o->size) goto error;
163162

164163
for(i=0; i<node->nChildren; i++) {
165-
if(tid < node->chrIdxStart[i]) break;
166164
if(tid < node->chrIdxStart[i] || tid > node->chrIdxEnd[i]) continue;
167165
if(node->chrIdxStart[i] != node->chrIdxEnd[i]) {
168166
if(tid == node->chrIdxStart[i]) {

0 commit comments

Comments
 (0)