|
ptr = cglobal(dlsym(libmstm, sym), typ) |
This should probably just be Ptr{typ}(dlsym(libmstm, sym)), since the cglobal(::Ptr, T) is just an antiquated way to change the pointer type. cglobal(::Ptr, ::Type{T}) is considering being deprecated in JuliaLang/julia#61707, so changing this would avoid that being a problem in the future.
RandomParticles.jl/src/MSTM_wrapper.jl
Line 57 in 360b453
This should probably just be
Ptr{typ}(dlsym(libmstm, sym)), since thecglobal(::Ptr, T)is just an antiquated way to change the pointer type.cglobal(::Ptr, ::Type{T})is considering being deprecated in JuliaLang/julia#61707, so changing this would avoid that being a problem in the future.