Skip to content

Commit

Permalink
Fix chunks smaller than min size in cython implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Jun 27, 2024
1 parent a5fc86a commit 24e0f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastcdc/fastcdc_cy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ cdef uint32_t cdc_offset(
):
cdef uint32_t pattern, i, size, barrier
pattern = 0
i = mi
size = len(data)
i = min(mi, size)
barrier = min(cs, size)
while i < barrier:
pattern = (pattern >> 1) + GEAR[data[i]]
Expand Down

0 comments on commit 24e0f6d

Please sign in to comment.