We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e624ad2 commit 10d9830Copy full SHA for 10d9830
pyray/__init__.py
@@ -75,7 +75,9 @@ def func(*args):
75
arg = ffi.new("int *", arg)
76
elif type(arg) is float:
77
arg = ffi.new("float *", arg)
78
- elif str(type(arg)) == "<class '_cffi_backend.__CDataOwn'>" and "*" not in str(arg):
+ elif str(type(arg)) == "<class '_cffi_backend.__CDataOwn'>" and "*" not in str(arg): #CPython
79
+ arg = ffi.addressof(arg)
80
+ elif str(type(arg)) == "<class '_cffi_backend._CDataBase'>" and "*" not in str(arg): #Pypy
81
arg = ffi.addressof(arg)
82
modified_args.append(arg)
83
result = a(*modified_args)
0 commit comments