Skip to content

Commit e92d87c

Browse files
committed
Some small type adjustments
1 parent 11edb76 commit e92d87c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blosc2/blosc2_ext.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,13 @@ ctypedef struct user_filters_udata:
359359
char* py_func
360360
char input_cdtype
361361
char output_cdtype
362-
int64_t chunkshape
362+
int32_t chunkshape
363363

364364
ctypedef struct filler_udata:
365365
char* py_func
366366
int64_t inputs_id
367367
char output_cdtype
368-
int64_t chunkshape
368+
int32_t chunkshape
369369

370370

371371
MAX_TYPESIZE = BLOSC_MAX_TYPESIZE
@@ -848,7 +848,7 @@ cdef class SChunk:
848848
PyObject_GetBuffer(dst, buf, PyBUF_SIMPLE)
849849
if buf.len == 0:
850850
raise ValueError("The dst length must be greater than 0")
851-
size = blosc2_schunk_decompress_chunk(self.schunk, nchunk, buf.buf, buf.len)
851+
size = blosc2_schunk_decompress_chunk(self.schunk, nchunk, buf.buf, <int32_t>buf.len)
852852
PyBuffer_Release(buf)
853853
else:
854854
dst = PyBytes_FromStringAndSize(NULL, nbytes)

0 commit comments

Comments
 (0)