Skip to content

Commit

Permalink
Correct return type of hwloc_topology_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Nov 16, 2014
1 parent 38663c1 commit 65781b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hwloc.jl
Expand Up @@ -78,8 +78,7 @@ function topology_load()
(Ptr{Void}, Cuint, Cuint), htopo, 0, 0)
topo = load(root)

ierr = ccall((:hwloc_topology_destroy, libhwloc), Cint, (Ptr{Void},), htopo)
@assert ierr==0
ccall((:hwloc_topology_destroy, libhwloc), Void, (Ptr{Void},), htopo)

return topo
end
Expand Down

0 comments on commit 65781b7

Please sign in to comment.