Skip to content

Commit f57444c

Browse files
committed
fix waitall
1 parent f543649 commit f57444c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mpi-base.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,10 @@ function Waitany!(reqs::Array{Request,1})
368368
stat = Status()
369369
ccall(MPI_WAITANY, Void,
370370
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}),
371-
&count, reqvals, index, statvals, &0)
371+
&count, reqvals, ind, stat.val, &0)
372372
index = Int(ind[])
373373
reqs[index].val = reqvals[index]
374-
reqa[index].buffer = nothing
374+
reqs[index].buffer = nothing
375375
(index, stat)
376376
end
377377

0 commit comments

Comments
 (0)