diff --git a/pyray/__init__.py b/pyray/__init__.py index 7e2a312..69177cc 100644 --- a/pyray/__init__.py +++ b/pyray/__init__.py @@ -57,6 +57,8 @@ def makefunc(a): arg = ffi.addressof(arg) elif str(type(arg)) == "" and "*" not in str(arg): #Pypy arg = ffi.addressof(arg) + elif arg is None: + arg = ffi.NULL modified_args.append(arg) result = a(*modified_args) if result is None: