From: morsch Date: Wed, 5 Nov 2008 14:27:01 +0000 (+0000) Subject: gcc 4.3 warnings fixed. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=f7b22746a65ef21a8a3d7189e89863bbb00d60ef gcc 4.3 warnings fixed. --- diff --git a/EVGEN/AliGenCorrHF.cxx b/EVGEN/AliGenCorrHF.cxx index e70337c0007..81bf8f4d711 100644 --- a/EVGEN/AliGenCorrHF.cxx +++ b/EVGEN/AliGenCorrHF.cxx @@ -439,7 +439,7 @@ void AliGenCorrHF::Generate() // // children - if (ChildSelected(TMath::Abs(kf)) || fForceDecay == kAll && trackIt[i]) + if ((ChildSelected(TMath::Abs(kf)) || fForceDecay == kAll) && trackIt[i]) { if (fCutOnChild) { pc[0]=iparticle->Px(); diff --git a/EVGEN/AliGenGSIlib.cxx b/EVGEN/AliGenGSIlib.cxx index 799e1fb3cc3..af3bded7223 100644 --- a/EVGEN/AliGenGSIlib.cxx +++ b/EVGEN/AliGenGSIlib.cxx @@ -67,7 +67,7 @@ Double_t AliGenGSIlib::PtUpsilonFlat( Double_t *px, Double_t */*dummy*/ ) Double_t x=*px; Double_t weight = 0.; - if (kptmin < x < kptmax) weight = 1.; + if ((x > kptmin) && (x < kptmax)) weight = 1.; return weight; @@ -222,7 +222,7 @@ Double_t AliGenGSIlib::PtJpsiFlat( Double_t *px, Double_t */*dummy*/ ) Double_t x=*px; Double_t weight = 0.; - if (kptmin < x < kptmax) weight = 1.; + if ((x > kptmin) && (x < kptmax)) weight = 1.; return weight;