fix warning (thanks Federico)
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Mar 2009 13:41:09 +0000 (13:41 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Mar 2009 13:41:09 +0000 (13:41 +0000)
STAT/TKDPDF.cxx

index 72bf23a..65d3ad2 100644 (file)
@@ -65,7 +65,7 @@ TKDPDF::TKDPDF(TTree *t, const Char_t *var, const Char_t *cut, UInt_t bsize, Lon
       fNPoints = np;
       //Info("TKDPDF(TTree*, const Char_t, const Char_t, UInt_t)", Form("Allocating %d data points in %d dimensions.", fNpoints, fNDim));
       fData = new Float_t*[fNDim];
-      for(int idim=0; idim<fNDim; idim++) fData[idim] = new Float_t[fNPoints];
+      for(int jdim=fNDim; jdim--;) fData[jdim] = new Float_t[fNPoints];
       fDataOwner = kTRUE;
     }
     v = t->GetV1();