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