Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
martaiborra committed Sep 10, 2024
1 parent af8b50a commit 0da680a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blosc/blosc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -1457,15 +1458,15 @@ 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;
}
return nitems;
}
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;
}
Expand Down

0 comments on commit 0da680a

Please sign in to comment.