Skip to content

Commit e0a81ff

Browse files
committed
Ensure that the Get_* functions return Int
The Julia MPI package always uses Int instead of Cint.
1 parent ed66b4c commit e0a81ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mpi-base.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ type Status
8484
val::Array{Cint,1}
8585
Status() = new(Array(Cint, MPI_STATUS_SIZE))
8686
end
87-
Get_error(stat::Status) = stat.val[MPI_ERROR]
88-
Get_source(stat::Status) = stat.val[MPI_SOURCE]
89-
Get_tag(stat::Status) = stat.val[MPI_TAG]
87+
Get_error(stat::Status) = Int(stat.val[MPI_ERROR])
88+
Get_source(stat::Status) = Int(stat.val[MPI_SOURCE])
89+
Get_tag(stat::Status) = Int(stat.val[MPI_TAG])
9090

9191
const ANY_SOURCE = Int(MPI_ANY_SOURCE)
9292
const ANY_TAG = Int(MPI_ANY_TAG)

0 commit comments

Comments
 (0)