Skip to content

Commit

Permalink
Cast back to int
Browse files Browse the repository at this point in the history
  • Loading branch information
martaiborra committed Apr 11, 2022
1 parent c7c509f commit 875c22e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blosc/frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -2219,7 +2219,7 @@ int frame_get_lazychunk(blosc2_frame_s *frame, int64_t nchunk, uint8_t **chunk,
}
// The last block could be incomplete, mainly due to the fact that the block size is not divisible
// by the typesize
block_csizes[nblocks - 1] = (int32_t)(leftover_block ? leftover_block : chunk_blocksize);
block_csizes[nblocks - 1] = (int)(leftover_block ? leftover_block : chunk_blocksize);
}
else {
// In regular, compressed chunks, we need to sort the bstarts (they can be out
Expand Down
2 changes: 1 addition & 1 deletion tests/fuzz/generate_inputs_corpus.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int create_cframe(const char* compname) {
// Add some vlmetalayers data
int32_t content_len = 10;
uint8_t *content = malloc(content_len);
for (uint32_t j = 0; j < content_len; ++j) {
for (int32_t j = 0; j < content_len; ++j) {
content[j] = (uint8_t) j;
}
int umlen = blosc2_vlmeta_add(schunk, "vlmetalayer", content, content_len, NULL);
Expand Down

0 comments on commit 875c22e

Please sign in to comment.