File: Add-support-for-Cython-3.1.patch

package info (click to toggle)
pyode 1.2.0.dev15-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: python: 2,036; sh: 24; makefile: 4
file content (25 lines) | stat: -rw-r--r-- 800 bytes parent folder | download
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
Description: Fix build with Cython 3.1
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-12-12
Bug-Debian: https://bugs.debian.org/1122006

--- a/src/geomobject.pyx
+++ b/src/geomobject.pyx
@@ -260,7 +260,7 @@ cdef class GeomObject:
         @param bits: Collide bit field
         @type bits: int/long
         """
-        dGeomSetCollideBits(self.gid, long(bits))
+        dGeomSetCollideBits(self.gid, int(bits))
 
     def setCategoryBits(self, bits):
         """setCategoryBits(bits)
@@ -270,7 +270,7 @@ cdef class GeomObject:
         @param bits: Category bit field
         @type bits: int/long
         """
-        dGeomSetCategoryBits(self.gid, long(bits))
+        dGeomSetCategoryBits(self.gid, int(bits))
 
     def getCollideBits(self):
         """getCollideBits() -> long