From 6585fbccca62da57d401bcf9ab824838960f5741 Mon Sep 17 00:00:00 2001 From: Jonas Schumacher Date: Fri, 19 Mar 2021 12:11:49 +0100 Subject: [PATCH] Fix missing changes of Void to Cvoid --- .gitignore | 1 + src/PageAlignedArrays.jl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 97e6a6f..9433518 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.jl.*.cov *.jl.mem /Manifest.toml +.vscode \ No newline at end of file diff --git a/src/PageAlignedArrays.jl b/src/PageAlignedArrays.jl index ccad833..981f7d3 100644 --- a/src/PageAlignedArrays.jl +++ b/src/PageAlignedArrays.jl @@ -71,9 +71,9 @@ function virtualfree(addr::Ptr{T}) where {T} return ccall((:VirtualFree, "Kernel32"), Cint, (Ptr{Cvoid}, Csize_t, Culong), addr, 0, MEM_RELEASE) end : @static Base.Sys.islinux() ? begin - return ccall(:free, Void, (Ptr{Cvoid},), addr) + return ccall(:free, Cvoid, (Ptr{Cvoid},), addr) end : @static Base.Sys.isapple() ? begin - return ccall((:free, "libSystem.dylib"), Void, (Ptr{Cvoid},), addr) + return ccall((:free, "libSystem.dylib"), Cvoid, (Ptr{Cvoid},), addr) end : error("OS not supported") end end # module