Skip to content

Commit

Permalink
Merge pull request #220 from aisk/cython3
Browse files Browse the repository at this point in the history
fix: compatible with cython3
  • Loading branch information
ethe authored Aug 7, 2023
2 parents 0764351 + 202ed5e commit da030d3
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 da030d3

Please sign in to comment.