Skip to content

Commit

Permalink
Fix missing changes of Void to Cvoid
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Schumacher committed Mar 19, 2021
1 parent 64645d9 commit 6585fbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.jl.*.cov
*.jl.mem
/Manifest.toml
.vscode
4 changes: 2 additions & 2 deletions src/PageAlignedArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6585fbc

Please sign in to comment.