Coverity happy finally?
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Jun 2011 08:36:06 +0000 (08:36 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Jun 2011 08:36:06 +0000 (08:36 +0000)
PYTHIA6/AliGenPythia.cxx

index 09216a7..8917619 100644 (file)
@@ -1898,7 +1898,7 @@ Double_t w[]={
       return kTRUE;
     }
 
-    Int_t ibin=nbin;
+    Int_t ibin=nbin-1;
     for(Int_t i=1; i<=nbin; i++) 
       if(M<=bin[i]) {
        ibin=i-1;