Skip to content

Commit

Permalink
Fix fixed-step file creation, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 committed Jan 12, 2016
1 parent d366e44 commit d9c02b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bigWig.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/*!
* The library version number
*/
#define LIBBIGWIG_VERSION 0.1.2
#define LIBBIGWIG_VERSION 0.1.3

/*!
* The magic number of a bigWig file.
Expand Down
4 changes: 2 additions & 2 deletions bwWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ int bwAddIntervalSpanSteps(bigWigFile_t *fp, char *chrom, uint32_t start, uint32

for(i=0; i<n; i++) {
if(wb->l + 4 >= fp->hdr->bufSize) {
wb->end = wb->start + (wb->l>>2) + step;
wb->end = wb->start + ((wb->l-24)>>2) * step;
flushBuffer(fp);
wb->start = wb->end;
}
Expand All @@ -532,7 +532,7 @@ int bwAppendIntervalSpanSteps(bigWigFile_t *fp, float *values, uint32_t n) {

for(i=0; i<n; i++) {
if(wb->l + 4 >= fp->hdr->bufSize) {
wb->end = wb->start + (wb->l>>2) + wb->step;
wb->end = wb->start + ((wb->l-24)>>2) * wb->step;
flushBuffer(fp);
wb->start = wb->end;
}
Expand Down

0 comments on commit d9c02b6

Please sign in to comment.