From 27d34072155b162bf6e6b3d8080dc72e26567575 Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Wed, 23 Apr 2008 09:25:15 +0000
Subject: [PATCH] Fix shadowed variable.

git-svn-id: http://root.cern.ch/svn/root/trunk@23422 27541ba8-7e3a-0410-8455-c3a389f83636
---
 hist/hist/src/TProfile.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hist/hist/src/TProfile.cxx b/hist/hist/src/TProfile.cxx
index 61c1375dfc0..b908c1ad858 100644
--- a/hist/hist/src/TProfile.cxx
+++ b/hist/hist/src/TProfile.cxx
@@ -1565,7 +1565,7 @@ TH1 *TProfile::Rebin(Int_t ngroup, const char*newname, const Double_t *xbins)
 
    if(!xbins && (fXaxis.GetXbins()->GetSize() > 0)){ // variable bin sizes
       Double_t *bins = new Double_t[newbins+1];
-      for(Int_t i = 0; i <= newbins; ++i) bins[i] = fXaxis.GetBinLowEdge(1+i*ngroup);
+      for(i = 0; i <= newbins; ++i) bins[i] = fXaxis.GetBinLowEdge(1+i*ngroup);
       hnew->SetBins(newbins,bins); //this also changes errors array (if any)
       delete [] bins;
    } else if (xbins) {
-- 
GitLab