Skip to content

Commit

Permalink
Merge pull request #382 from r-barnes/patch-1
Browse files Browse the repository at this point in the history
Remove unused-but-set-variable from blosc.c
  • Loading branch information
FrancescAlted committed Jul 20, 2024
2 parents 7c44653 + 92cc810 commit 3455c38
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions blosc/blosc.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ static int blosc_d(struct blosc_context* context, int32_t blocksize,
int32_t nbytes; /* number of decompressed bytes in split */
const int32_t compressedsize = context->compressedsize;
int32_t cbytes; /* number of compressed bytes in split */
int32_t ctbytes = 0; /* number of compressed bytes in block */
int32_t ntbytes = 0; /* number of uncompressed bytes in block */
uint8_t *_tmp = dest;
int32_t typesize = context->typesize;
Expand Down Expand Up @@ -769,7 +768,6 @@ static int blosc_d(struct blosc_context* context, int32_t blocksize,
if (cbytes < 0 || cbytes > context->compressedsize - src_offset) {
return -1;
}
ctbytes += (int32_t)sizeof(int32_t);
src = base_src + src_offset;
/* Uncompress */
if (cbytes == neblock) {
Expand All @@ -784,7 +782,6 @@ static int blosc_d(struct blosc_context* context, int32_t blocksize,
}
}
src_offset += cbytes;
ctbytes += cbytes;
_tmp += nbytes;
ntbytes += nbytes;
} /* Closes j < nsplits */
Expand Down

0 comments on commit 3455c38

Please sign in to comment.