X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=samtools.git;a=blobdiff_plain;f=razf.c;fp=razf.c;h=022397169188e89a8ed49c4ef846fc18fa1a026b;hp=f67447c33bde6478787a5f95c9d60a14061bb6a3;hb=d255564c7080a7a71bc2312dab6a3007f72bfe8b;hpb=17d79b44a564aa4d5853bbc0b5f97ec2cefc927b diff --git a/razf.c b/razf.c index f67447c..0223971 100644 --- a/razf.c +++ b/razf.c @@ -90,6 +90,8 @@ static void add_zindex(RAZF *rz, int64_t in, int64_t out){ fprintf(stderr, "[%s] failure to allocate space for new zindex.\n", __func__); abort(); } + rz->index->cell_offsets = cores; + rz->index->bin_offsets = bores; } if(rz->index->size % RZ_BIN_SIZE == 0) rz->index->bin_offsets[rz->index->size / RZ_BIN_SIZE] = out; rz->index->cell_offsets[rz->index->size] = out - rz->index->bin_offsets[rz->index->size / RZ_BIN_SIZE];