Description: Fix GCC-14 related issues
 Make conversions explicit where neede.
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074955
Forwarded: no
Last-Update: 2024-08-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/mpi/fftw_f77_mpi.h
+++ b/mpi/fftw_f77_mpi.h
@@ -47,7 +47,7 @@
 */
 
 #if defined(HAVE_MPI_COMM_F2C)
-#  define FFTW_MPI_COMM_F2C(comm) MPI_Comm_f2c(*((MPI_Comm *) comm))
+#  define FFTW_MPI_COMM_F2C(comm) MPI_Comm_f2c((MPI_Fint) *((MPI_Comm *) comm))
 #elif defined(FFTW_USE_F77_MPI_COMM)
 #  define FFTW_MPI_COMM_F2C(comm) (* ((MPI_Comm *) comm))
 #elif defined(FFTW_USE_F77_MPI_COMM_P)
