Skip to content

Commit 2a7de75

Browse files
committed
BUGFIX Python 3.13 does not define long, so crashes if not aliased to int
1 parent 4387373 commit 2a7de75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

accelerate/src/vbo.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import ctypes, weakref
44
from OpenGL_accelerate.formathandler cimport FormatHandler
55
from OpenGL import error
66
from OpenGL._bytes import bytes,unicode
7+
try:
8+
long = long
9+
except NameError as err:
10+
long = int
711

812
cdef extern from "Python.h":
913
cdef void Py_XINCREF( object )

0 commit comments

Comments
 (0)