Skip to content

Commit

Permalink
fix: compatible with cython3
Browse files Browse the repository at this point in the history
  • Loading branch information
aisk committed Aug 7, 2023
1 parent 0764351 commit 202ed5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thriftpy2/transport/cybase.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ cdef class TCyBuffer(object):
if min_size <= self.buf_size:
return 0

cdef int multiples = min_size / self.buf_size
cdef int multiples = min_size // self.buf_size
if min_size % self.buf_size != 0:
multiples += 1

Expand Down

0 comments on commit 202ed5e

Please sign in to comment.