diff options
Diffstat (limited to 'dev-python/thriftpy2/files/thriftpy2-0.4.16-cython3.patch')
-rw-r--r-- | dev-python/thriftpy2/files/thriftpy2-0.4.16-cython3.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-python/thriftpy2/files/thriftpy2-0.4.16-cython3.patch b/dev-python/thriftpy2/files/thriftpy2-0.4.16-cython3.patch new file mode 100644 index 000000000000..8e186d719d1e --- /dev/null +++ b/dev-python/thriftpy2/files/thriftpy2-0.4.16-cython3.patch @@ -0,0 +1,25 @@ +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 + |