TGraph fit giving data type warning message and NAN fit res

Hi Rooters

I am trying to run a very simple script to fit a set of data to a pol1.
The script is shown below. Whenever I attempt to perform the fit I get
the warning message:

Warning in TRootContextMenu::Dialog: data type is not basic type,
assuming (int)

If I try to fit a TGraphErrors the results are NAN. If anyone can offer
assistance it would be greatly appreciated. Note, I am running
root_5_0_08 on MacOsX 10.4 (installed using Fink).

Thanks much!
Darren

{
#include
#include “Riostream.h”

gROOT->Reset();
gStyle->SetOptFit(111111);

Int_t n = 5;
Double_t x[n] = {0,10,20,35,50};
Double_t y[n] = {0,0.015625,0.046875,0.09375,0.14061};
Double_t xerr[n] = {2.5,2.5,2.5,2.5,2.5};
Double_t yerr[n] = {0.0,0.015625,0.015625,0.015625,0.015625};

//TGraph *test = new TGraph(n,x,y);
//test->SetMarkerStyle(21);
//test->Draw(“AP”);

TGraph *gr = new TGraphErrors(n,x,y,xerr,yerr);
gr->SetMarkerStyle(21);
gr->Draw(“AP”);
gr->Fit(“pol1”);

}

You are setting yerr[0] = 0 !!!

Either give a correct value to yerr[0] or fit with equal weights
gr->Fit(“pol1”,“w”)

Rene