Skip to content

Commit

Permalink
change warnlvl from long to int
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Nov 3, 2024
1 parent 1db1e48 commit a01dc47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blosc/blosc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ static int initialize_context_compression(struct blosc_context* context,
int32_t compressor,
int32_t blocksize,
int32_t numthreads,
long warnlvl)
int warnlvl)
{
/* Set parameters */
context->compress = 1;
Expand Down Expand Up @@ -1277,7 +1277,7 @@ int blosc_compress_ctx(int clevel, int doshuffle, size_t typesize,
error = initialize_context_compression(&context, clevel, doshuffle, typesize,
nbytes, src, dest, destsize,
blosc_compname_to_compcode(compressor),
blocksize, numinternalthreads, 0L);
blocksize, numinternalthreads, 0);
if (error <= 0) { return error; }

error = write_compression_header(&context, clevel, doshuffle);
Expand Down Expand Up @@ -1396,7 +1396,7 @@ int blosc_compress(int clevel, int doshuffle, size_t typesize, size_t nbytes,
pthread_mutex_lock(global_comp_mutex);

do {
long warnlvl = 0L;
int warnlvl = 0;
envvar = getenv("BLOSC_WARN");
if (envvar != NULL) {
warnlvl = strtol(envvar, NULL, 10);
Expand Down

0 comments on commit a01dc47

Please sign in to comment.