From 97ea6cf3d6bd9c583c445fe6eeab34f5dc4754c9 Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Tue, 11 Jun 2024 15:22:16 +0200 Subject: [PATCH] [math] Use correct type when invoking the GSLIntegrator plugin, otherwise heavy checks in the PluginHandler take place that perform interpreter lookups. Fixes #15579 --- math/mathcore/src/Integrator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/mathcore/src/Integrator.cxx b/math/mathcore/src/Integrator.cxx index e4e2ad5aab1be..cddb9a4ef72a3 100644 --- a/math/mathcore/src/Integrator.cxx +++ b/math/mathcore/src/Integrator.cxx @@ -163,7 +163,7 @@ VirtualIntegratorOneDim * IntegratorOneDim::CreateIntegrator(IntegrationOneDim:: // plugin manager requires a string std::string typeName = GetName(type); - ig = reinterpret_cast( h->ExecPlugin(5,typeName.c_str(), rule, absTol, relTol, size ) ); + ig = reinterpret_cast( h->ExecPlugin(5,typeName.c_str(), rule, absTol, relTol, (size_t) size ) ); assert(ig != nullptr); } #ifdef DEBUG