Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jesgum committed Dec 17, 2024
1 parent d61bd7e commit b4e16c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ALICE3/Core/FastTracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ void FastTracker::AddLayer(TString name, float r, float z, float x0, float xrho,
layers.push_back(newLayer);
}

DetLayer FastTracker::GetLayer(const int layer, bool ignoreBarrelLayers)
DetLayer FastTracker::GetLayer(int layer, bool ignoreBarrelLayers)
{
int layerIdx = layer;
if (ignoreBarrelLayers) {
for (uint32_t il = 0, trackingLayerIdx = 0; trackingLayerIdx <= layer; il++) {
for (int il = 0, trackingLayerIdx = 0; trackingLayerIdx <= layer; il++) {
if (layers[il].type == 0)
continue;
trackingLayerIdx++;
Expand Down

0 comments on commit b4e16c4

Please sign in to comment.