https://bugs.gentoo.org/898722
https://github.com/Thriftpy/thriftpy2/commit/202ed5ef7b91399b86f8b3b76108a14612b38dbc

From 202ed5ef7b91399b86f8b3b76108a14612b38dbc Mon Sep 17 00:00:00 2001
From: AN Long <aisk1988@gmail.com>
Date: Mon, 7 Aug 2023 17:11:51 +0800
Subject: [PATCH] fix: compatible with cython3

---
 thriftpy2/transport/cybase.pyx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/thriftpy2/transport/cybase.pyx b/thriftpy2/transport/cybase.pyx
index c05560f8..d0fc3696 100644
--- a/thriftpy2/transport/cybase.pyx
+++ b/thriftpy2/transport/cybase.pyx
@@ -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
 
