Skip to content

Commit c7643cf

Browse files
committed
fix3
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 26f187a commit c7643cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackingTopology.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class TrackingTopology
8282
void init(int maxLayers, int maxHoles, Mask holeLayerMask)
8383
{
8484
clear();
85-
mMaxLayers = o2::gpu::CAMath::Clamp(maxLayers, 0, NLayers);
85+
mMaxLayers = o2::gpu::CAMath::Max(0, o2::gpu::CAMath::Min(maxLayers, NLayers));
8686
mMaxHoles = o2::gpu::CAMath::Max(maxHoles, 0);
8787
mHoleLayerMask = holeLayerMask;
8888
for (int fromLayer = 0; fromLayer < mMaxLayers; ++fromLayer) {

0 commit comments

Comments
 (0)