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
|