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 authored and ktf committed Jun 13, 2024
1 parent 54e0863 commit 7fc6e36
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 7fc6e36

Please sign in to comment.