diff --git a/blosc/blosc2.c b/blosc/blosc2.c index dc73d38e..d774e86a 100644 --- a/blosc/blosc2.c +++ b/blosc/blosc2.c @@ -1446,6 +1446,7 @@ int pipeline_backward(struct thread_context* thread_context, const int32_t bsize static int32_t set_nans(int32_t typesize, uint8_t* dest, int32_t destsize) { + printf("dins set nans\n"); if (destsize % typesize != 0) { BLOSC_TRACE_ERROR("destsize can only be a multiple of typesize"); BLOSC_ERROR(BLOSC2_ERROR_FAILURE); @@ -1457,7 +1458,7 @@ static int32_t set_nans(int32_t typesize, uint8_t* dest, int32_t destsize) { if (typesize == 4) { float* dest_ = (float*)dest; - float val = nanf(""); + float val = nanf("1"); for (int i = 0; i < nitems; i++) { dest_[i] = val; } @@ -1465,7 +1466,7 @@ static int32_t set_nans(int32_t typesize, uint8_t* dest, int32_t destsize) { } else if (typesize == 8) { double* dest_ = (double*)dest; - double val = nan(""); + double val = nan("0"); for (int i = 0; i < nitems; i++) { dest_[i] = val; }