From 18fa6eacaa53d8ea8667ae1d107a488f8117f4aa Mon Sep 17 00:00:00 2001 From: Michael Schlottke-Lakemper Date: Mon, 30 May 2022 20:29:25 +0200 Subject: [PATCH] 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 --- src/consts/openmpi.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/consts/openmpi.jl b/src/consts/openmpi.jl index 7262f3698..319403f82 100644 --- a/src/consts/openmpi.jl +++ b/src/consts/openmpi.jl @@ -15,10 +15,10 @@ const MPI_MAX_PROCESSOR_NAME = Cint(256) # Types # Various (signed) integer types: -const MPI_Aint = Int -const MPI_Fint = Int32 -const MPI_Count = Int -const MPI_Offset = Int +const MPI_Aint = Cptrdiff_t +const MPI_Fint = Cint +const MPI_Count = Int # needs to be Int to match different sizes on 32-bit/64-bit systems +const MPI_Offset = Int # needs to be Int to match different sizes on 32-bit/64-bit systems # Status: struct MPI_Status