Skip to content

Commit

Permalink
Bump to 0.4.8, include changes for pointer arithmetic and also allow …
Browse files Browse the repository at this point in the history
…a mismatch between header and data contig order.
  • Loading branch information
Devon Ryan committed Jan 17, 2025
1 parent 4375bd1 commit 4c39f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bigWig.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extern "C" {
/*!
* The library version number
*/
#define LIBBIGWIG_VERSION 0.4.7
#define LIBBIGWIG_VERSION 0.4.8

/*!
* If 1, then this library was compiled with remote file support.
Expand Down
4 changes: 1 addition & 3 deletions bwValues.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ static bwOverlapBlock_t *overlapsLeaf(bwRTreeNode_t *node, uint32_t tid, uint32_
if(!o) return NULL;

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

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

for(i=0; i<node->nChildren; i++) {
if(tid < node->chrIdxStart[i]) break;
if(tid < node->chrIdxStart[i] || tid > node->chrIdxEnd[i]) continue;
if(node->chrIdxStart[i] != node->chrIdxEnd[i]) {
if(tid == node->chrIdxStart[i]) {
Expand Down

0 comments on commit 4c39f95

Please sign in to comment.