Skip to content

Unneeded cglobal in cglobal(dlsym(...)) #6

@topolarity

Description

@topolarity

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions