Skip to content

Commit

Permalink
Fix for #519 #520 #521
Browse files Browse the repository at this point in the history
  • Loading branch information
martaiborra committed Jun 21, 2023
1 parent 144ed29 commit 425e8a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/codecs/zfp/blosc2-zfp.c
Expand Up @@ -26,6 +26,7 @@ int zfp_acc_compress(const uint8_t *input, int32_t input_len, uint8_t *output,
ZFP_ERROR_NULL(input);
ZFP_ERROR_NULL(output);
ZFP_ERROR_NULL(cparams);
ZFP_ERROR_NULL(cparams->schunk);

double tol = (int8_t) meta;
int8_t ndim;
Expand Down Expand Up @@ -146,6 +147,7 @@ int zfp_acc_decompress(const uint8_t *input, int32_t input_len, uint8_t *output,
ZFP_ERROR_NULL(input);
ZFP_ERROR_NULL(output);
ZFP_ERROR_NULL(dparams);
ZFP_ERROR_NULL(dparams->schunk);
BLOSC_UNUSED_PARAM(chunk);

blosc2_schunk *sc = dparams->schunk;
Expand Down Expand Up @@ -241,6 +243,7 @@ int zfp_prec_compress(const uint8_t *input, int32_t input_len, uint8_t *output,
ZFP_ERROR_NULL(input);
ZFP_ERROR_NULL(output);
ZFP_ERROR_NULL(cparams);
ZFP_ERROR_NULL(cparams->schunk);

int8_t ndim;
int64_t *shape = malloc(8 * sizeof(int64_t));
Expand Down Expand Up @@ -385,6 +388,7 @@ int zfp_prec_decompress(const uint8_t *input, int32_t input_len, uint8_t *output
ZFP_ERROR_NULL(input);
ZFP_ERROR_NULL(output);
ZFP_ERROR_NULL(dparams);
ZFP_ERROR_NULL(dparams->schunk);
BLOSC_UNUSED_PARAM(chunk);

blosc2_schunk *sc = dparams->schunk;
Expand Down Expand Up @@ -504,6 +508,7 @@ int zfp_rate_compress(const uint8_t *input, int32_t input_len, uint8_t *output,
ZFP_ERROR_NULL(input);
ZFP_ERROR_NULL(output);
ZFP_ERROR_NULL(cparams);
ZFP_ERROR_NULL(cparams->schunk);

double ratio = (double) meta / 100.0;
int8_t ndim;
Expand Down Expand Up @@ -635,6 +640,7 @@ int zfp_rate_decompress(const uint8_t *input, int32_t input_len, uint8_t *output
ZFP_ERROR_NULL(input);
ZFP_ERROR_NULL(output);
ZFP_ERROR_NULL(dparams);
ZFP_ERROR_NULL(dparams->schunk);
BLOSC_UNUSED_PARAM(chunk);

blosc2_schunk *sc = dparams->schunk;
Expand Down

0 comments on commit 425e8a9

Please sign in to comment.