Changeset 3247 in Sophya for trunk/SophyaLib/HiStats/histerr.cc


Ignore:
Timestamp:
May 15, 2007, 11:49:12 AM (18 years ago)
Author:
cmv
Message:

correction erreur format dans sscanf cmv 15/05/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/histerr.cc

    r3236 r3247  
    292292  fprintf(file,"%ld %.17e %.17e %d\n",(long)NBins(),XMin(),XMax(),NMean());
    293293  for(long i=0;i<NBins();i++) {
    294       fprintf(file,"%d %.17e %.17e %.17e %.0f\n"
     294      fprintf(file,"%ld %.17e %.17e %.17e %.0f\n"
    295295             ,i,BinCenter(i),(*this)(i),Error2(i),NEntBin(i));
    296296  }
     
    320320
    321321      r_8 xmin,xmax; long mnmean=1;
    322       sscanf(line,"%d %lf %lf %d",&nbin,&xmin,&xmax,&mnmean);
     322      sscanf(line,"%ld %lf %lf %ld",&nbin,&xmin,&xmax,&mnmean);
    323323      if(nbin<=0) {
    324324        cout<<"HistoErr::ReadASCII_Error: nbin= "<<nbin<<endl;
     
    331331
    332332      long i; r_8 x,v,e2,nb;
    333       sscanf(line,"%d %lf %lf %lf %lf",&i,&x,&v,&e2,&nb);
     333      sscanf(line,"%ld %lf %lf %lf %lf",&i,&x,&v,&e2,&nb);
    334334      SetBin(i,v);
    335335      SetErr2(i,e2);
Note: See TracChangeset for help on using the changeset viewer.