diff --git a/opm/simulators/linalg/HyprePreconditioner.hpp b/opm/simulators/linalg/HyprePreconditioner.hpp index 85306f863..d1f9cfe30 100644 --- a/opm/simulators/linalg/HyprePreconditioner.hpp +++ b/opm/simulators/linalg/HyprePreconditioner.hpp @@ -319,7 +319,7 @@ private: } HYPRE_IJMatrixAssemble(A_hypre_); - HYPRE_IJMatrixGetObject(A_hypre_, (void**)&parcsr_A_); + HYPRE_IJMatrixGetObject(A_hypre_, reinterpret_cast(&parcsr_A_)); } /** @@ -350,8 +350,8 @@ private: HYPRE_IJVectorAssemble(x_hypre_); HYPRE_IJVectorAssemble(b_hypre_); - HYPRE_IJVectorGetObject(x_hypre_, (void**)&par_x_); - HYPRE_IJVectorGetObject(b_hypre_, (void**)&par_b_); + HYPRE_IJVectorGetObject(x_hypre_, reinterpret_cast(&par_x_)); + HYPRE_IJVectorGetObject(b_hypre_, reinterpret_cast(&par_b_)); } /**