Adding static_cast to keep the compiler happy
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnSelectorRL.cxx
index 189369d..582d6a0 100644 (file)
@@ -177,7 +177,7 @@ void AliRsnSelectorRL::Identify(AliRsnDaughter &track)
              Double_t *prob = GetPIDprobabilities(track);
          if (!prob) track.SetPDG(0);
              Int_t idx[AliPID::kSPECIES];
-         TMath::Sort(AliPID::kSPECIES, prob, idx);
+             TMath::Sort(static_cast<Int_t>(AliPID::kSPECIES), prob, idx);
              Int_t imax = idx[0];
          Double_t maxprob = prob[imax];
              if (maxprob >= fProbThreshold) {