Skip to content

Commit

Permalink
[math] Use correct type when invoking the GSLIntegrator
Browse files Browse the repository at this point in the history
plugin, otherwise heavy checks in the PluginHandler take place that
perform interpreter lookups.

Fixes #15579
  • Loading branch information
dpiparo committed Jun 11, 2024
1 parent 2ae6678 commit 97ea6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion math/mathcore/src/Integrator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ VirtualIntegratorOneDim * IntegratorOneDim::CreateIntegrator(IntegrationOneDim::
// plugin manager requires a string
std::string typeName = GetName(type);

ig = reinterpret_cast<ROOT::Math::VirtualIntegratorOneDim *>( h->ExecPlugin(5,typeName.c_str(), rule, absTol, relTol, size ) );
ig = reinterpret_cast<ROOT::Math::VirtualIntegratorOneDim *>( h->ExecPlugin(5,typeName.c_str(), rule, absTol, relTol, (size_t) size ) );
assert(ig != nullptr);
}
#ifdef DEBUG
Expand Down

0 comments on commit 97ea6cf

Please sign in to comment.