Skip to content

Commit 4a3bb11

Browse files
committed
the pointer for the capsule gets wrapped, unwrap it again
1 parent c236f16 commit 4a3bb11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/python_cext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ class PyCapsule:
540540

541541
def __init__(self, name, pointer, destructor):
542542
self.name = name
543-
self.pointer = pointer
543+
self.pointer = to_sulong(pointer)
544544

545545
def __repr__(self):
546546
name = "NULL" if self.name is None else self.name

0 commit comments

Comments
 (0)