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 root-project#15579
  • Loading branch information
dpiparo committed Jun 11, 2024
1 parent 87ce8bf commit a899c68
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 a899c68

Please sign in to comment.