Skip to content

Commit 18fa6ea

Browse files
authored
Use corresponding aliases for C types in OpenMPI ABI file (#606)
* Use corresponding aliases for C types in OpenMPI ABI file * Use `Int` for `MPI_Count`, `MPI_Offset` to hopefully fix issues on 32-bit systems
1 parent aab9295 commit 18fa6ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/consts/openmpi.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const MPI_MAX_PROCESSOR_NAME = Cint(256)
1515
# Types
1616

1717
# Various (signed) integer types:
18-
const MPI_Aint = Int
19-
const MPI_Fint = Int32
20-
const MPI_Count = Int
21-
const MPI_Offset = Int
18+
const MPI_Aint = Cptrdiff_t
19+
const MPI_Fint = Cint
20+
const MPI_Count = Int # needs to be Int to match different sizes on 32-bit/64-bit systems
21+
const MPI_Offset = Int # needs to be Int to match different sizes on 32-bit/64-bit systems
2222

2323
# Status:
2424
struct MPI_Status

0 commit comments

Comments
 (0)