From 39234397c4b34785ad4557edd947d03331d98078 Mon Sep 17 00:00:00 2001 From: Cody Tapscott Date: Fri, 1 May 2026 15:51:40 -0400 Subject: [PATCH] Remove unneeded `cglobal` in `cglobal(dlsym(...))` --- src/api/types.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/types.jl b/src/api/types.jl index 8075eb5..08e37dc 100644 --- a/src/api/types.jl +++ b/src/api/types.jl @@ -271,7 +271,7 @@ end # we can precompile for improved latency. const libhdf5handle = Ref(dlopen(libhdf5)) ccall(dlsym(libhdf5handle[], :H5open), herr_t, ()) -_read_const(sym::Symbol) = unsafe_load(cglobal(dlsym(libhdf5handle[], sym), hid_t)) +_read_const(sym::Symbol) = unsafe_load(Ptr{hid_t}(dlsym(libhdf5handle[], sym))) _has_symbol(sym::Symbol) = dlsym(libhdf5handle[], sym; throw_error = false) !== nothing # iteration order constants