Skip to content

Commit a4ed12d

Browse files
author
Christopher Doris
committed
fix Py constructor
1 parent c9a374c commit a4ed12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/API/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ return `Py`.
2424
"""
2525
mutable struct Py
2626
ptr::Ptr{Cvoid}
27-
Py(::Val{:new}, ptr::Ptr{Cvoid}) = finalizer(Core.py_finalizer, new(ptr))
27+
Py(::Val{:new}, ptr::Ptr) = finalizer(Core.py_finalizer, new(Ptr{Cvoid}(ptr)))
2828
end
2929

3030
"""

0 commit comments

Comments
 (0)