Skip to content
Snippets Groups Projects
Commit 3a265d95 authored by sss's avatar sss Committed by scott snyder
Browse files

CaloTrackingGeometry: Fix out-of-bounds vector access.

Fixes crash when built with -D_GLIBCXX_ASSERTIONS.
parent 00dcf3b1
No related branches found
No related tags found
1 merge request!76855CaloTrackingGeometry: Fix out-of-bounds vector access.
......@@ -814,7 +814,7 @@ CaloSurfaceBuilder::fill_tg_surfaces(const CaloDetDescrManager* calo_dd) const
// exit surfaces
for (CaloCell_ID::CaloSample sample = CaloCell_ID::PreSamplerB;
sample + 1 < CaloCell_ID::Unknown;
sample + 1 < static_cast<int>(m_layerEntries.size());
sample = CaloCell_ID::CaloSample(sample + 1)) {
m_layerExits.push_back(m_layerEntries[sample + 1]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment