gentoo/dev-python/rencode/files/rencode-1.0.6-cython-3.1.0.patch
Sebastian Pipping fd14f31a68
dev-python/rencode: Support >=dev-python/cython-3.1.0_rc1
Closes: https://bugs.gentoo.org/955434
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
2025-05-11 22:43:33 +02:00

27 lines
810 B
Diff

From db3ad169c16e00e39ebc72dc2938828f24299d56 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Sun, 11 May 2025 22:17:27 +0200
Subject: [PATCH] rencode/rencode.pyx: Fix compilation for Cython 3.1.0
https://github.com/aresch/rencode/issues/31
---
rencode/rencode.pyx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rencode/rencode.pyx b/rencode/rencode.pyx
index 3db1180..494919b 100644
--- a/rencode/rencode.pyx
+++ b/rencode/rencode.pyx
@@ -275,7 +275,7 @@ cdef object MIN_SIGNED_LONGLONG = -MAX_SIGNED_LONGLONG
cdef encode(char **buf, unsigned int *pos, data):
t = type(data)
- if t == int or t == long:
+ if t == int:
if -128 <= data < 128:
encode_char(buf, pos, data)
elif -32768 <= data < 32768:
--
2.49.0