Skip to content

Commit

Permalink
Fix a stupid memoryview bug introduced a few days ago
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Aug 22, 2023
1 parent 2424d94 commit 1a8ff4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blosc2/blosc2_ext.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ cdef class SChunk:
return rc

def insert_chunk(self, nchunk, chunk):
cdef uint8_t[:] typed_view_chunk
cdef const uint8_t[:] typed_view_chunk
mem_view_chunk = memoryview(chunk)
typed_view_chunk = mem_view_chunk.cast('B')
_check_comp_length('chunk', len(typed_view_chunk))
Expand Down Expand Up @@ -1203,7 +1203,7 @@ cdef class SChunk:
return rc

def update_chunk(self, nchunk, chunk):
cdef uint8_t[:] typed_view_chunk
cdef const uint8_t[:] typed_view_chunk
mem_view_chunk = memoryview(chunk)
typed_view_chunk = mem_view_chunk.cast('B')
_check_comp_length('chunk', len(typed_view_chunk))
Expand Down

0 comments on commit 1a8ff4e

Please sign in to comment.