From e1888296b14ea88405f6313e3ba0bff4c48513a8 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 14 Feb 2017 16:18:19 +0100 Subject: [PATCH] Don't hide the cruft, even to please sonar. Document it instead. This would really make the code more ugly. Instead, add a comment explaining why, and I'll make the issue as wontfix in sonar. This reverts commit 33231edf2cf2a3615965d676f3d5c7f37a951569. --- src/smpi/smpi_mpi_dt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/smpi/smpi_mpi_dt.cpp b/src/smpi/smpi_mpi_dt.cpp index 8c63b07790..9bd0d52ea5 100644 --- a/src/smpi/smpi_mpi_dt.cpp +++ b/src/smpi/smpi_mpi_dt.cpp @@ -1403,8 +1403,7 @@ void smpi_op_apply(MPI_Op op, void *invec, void *inoutvec, int *len, MPI_Datatyp op->func(invec, inoutvec, len, datatype); else{ int tmp = smpi_type_c2f(*datatype); - void* tmpptr=static_cast(&tmp); - op->func(invec, inoutvec, len, static_cast(tmpptr) ); + op->func(invec, inoutvec, len, reinterpret_cast(&tmp) ); } } } -- 2.20.1