From e108e4b8c1ce8126c20db8be33e5b48a88c77252 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 23 Jan 2025 10:43:09 +0100 Subject: [PATCH] use c++ casts --- opm/simulators/linalg/HyprePreconditioner.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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_)); } /**