Changeset 712 in Sophya


Ignore:
Timestamp:
Jan 21, 2000, 6:02:41 PM (26 years ago)
Author:
ansari
Message:

Correction long -> int_4 - Reza 21/01/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsioserver.cc

    r702 r712  
    5555      if(tfields != 1)
    5656        throw IOExc("FitsIOServer::dataobj  ERROR more than one column !");
    57 
    5857      // get the datatype of the values
    5958      int DTYPE;
     
    169168      else if(bitpix ==  LONG_IMG)
    170169        {
    171          // TMatrix<int> *mat=new TMatrix<int>(nrows,ncols);
    172           TMatrix<long> *mat=new TMatrix<long>(nrows,ncols);
     170          TMatrix<int_4> *mat=new TMatrix<int_4>(nrows,ncols);
    173171          load(*mat,flnm);
    174172          if(naxis == 1)
    175173            {
    176               TVector<long> *vect=new TVector<long>(*mat);
    177          //     TVector<int> *vect=new TVector<int>(*mat);              // Rationalisation mac D.Y.
     174              TVector<int_4> *vect=new TVector<int_4>(*mat);
    178175              delete mat;
    179176              return vect;
     
    437434              int ival;
    438435              fits_read_key(fptr,TINT,keyname,&ival,NULL,&status);
    439               nt0.Info()[keyname]= (long) ival;         // Portage mac DY
     436              nt0.Info()[keyname]= (int_4) ival;                // Portage mac DY
    440437              break;
    441438            case 'L':
     
    443440              if(strncmp(strval,"T",1) == 0) ilog= 1;
    444441              else ilog= 0;
    445               nt0.Info()[keyname]= (long) ilog;
     442              nt0.Info()[keyname]= (int_4) ilog;
    446443              break;
    447444            case 'F':
Note: See TracChangeset for help on using the changeset viewer.