]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnReader.cxx
Adding static_cast to keep the compiler happy
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnReader.cxx
index 376a33d85c3c229a9c6c276871989c5fc87db1e0..c8ac0c24354c3018261650b9116d1ba1fd264278 100644 (file)
@@ -170,7 +170,7 @@ void AliRsnReader::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) {