From b6f4649e29a059aaeb08cfa9f6933a7b74701d38 Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Mon, 5 Jun 2000 07:27:12 +0000
Subject: [PATCH] - Set the maximum dimension for array params in
 TTreeFormula::EvalInstance   to the parameter kMAXFOUND already used in
 TFormula.

git-svn-id: http://root.cern.ch/svn/root/trunk@70 27541ba8-7e3a-0410-8455-c3a389f83636
---
 treeplayer/src/TTreeFormula.cxx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/treeplayer/src/TTreeFormula.cxx b/treeplayer/src/TTreeFormula.cxx
index e27b1adce3c..ece97b2bda7 100644
--- a/treeplayer/src/TTreeFormula.cxx
+++ b/treeplayer/src/TTreeFormula.cxx
@@ -1,4 +1,4 @@
-// @(#)root/treeplayer:$Name:  $:$Id: TTreeFormula.cxx,v 1.3 2000/05/26 06:43:01 brun Exp $
+// @(#)root/treeplayer:$Name:  $:$Id: TTreeFormula.cxx,v 1.4 2000/05/30 06:12:50 brun Exp $
 // Author: Rene Brun   19/01/96
 
 /*************************************************************************
@@ -245,12 +245,14 @@ Double_t TTreeFormula::EvalInstance(Int_t instance)
 //*-*                  =========================
 //
 
+  const Int_t kMAXFOUND = 200;      //must be the same as values defined in TFormula
+  const Int_t kMAXSTRINGFOUND = 10;
   Int_t i,pos,pos2,int1,int2;
   Float_t aresult;
-  Double_t tab[255];
-  Float_t param[50];
+  Double_t tab[kMAXFOUND];
+  Float_t param[kMAXFOUND];
   Double_t dexp;
-  char *tab2[20];
+  char *tab2[kMAXSTRINGFOUND];
 
   if (fNoper == 1 && fNcodes > 0) {
      if (fCodes[0] < 0) {
-- 
GitLab