blob: f77b9174dcf6f2e61ae34653738bb39bdd67e9f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
|