change how PyRay detects pointers
This commit is contained in:
parent
9a3ffb525e
commit
cb7a574555
4 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
__version__ = "3.7.0.post4"
|
||||
__version__ = "3.7.0.post5"
|
||||
|
||||
# Copyright (c) 2021 Richard Smith and others
|
||||
#
|
||||
|
|
|
@ -31,7 +31,7 @@ def makefunc(a):
|
|||
if type(arg) == str:
|
||||
encoded = arg.encode('utf-8')
|
||||
modified_args.append(encoded)
|
||||
elif c_arg.kind == 'pointer':
|
||||
elif c_arg.kind == 'pointer' and str(type(arg)) == "<class '_cffi_backend.__CDataOwn'>":
|
||||
modified_args.append(ffi.addressof(arg))
|
||||
else:
|
||||
modified_args.append(arg)
|
||||
|
|
Reference in a new issue