Index: trunk/SophyaExt/FitsIOServer/fboloread.h
===================================================================
--- trunk/SophyaExt/FitsIOServer/fboloread.h	(revision 2322)
+++ trunk/SophyaExt/FitsIOServer/fboloread.h	(revision 3128)
@@ -44,20 +44,20 @@
 
   //! return Alpha value for row "n" into double
-  inline double GetAlpha(long n,bool usebuffer=true)
+  inline double GetAlpha(LONGLONG n,bool usebuffer=true)
                 {return GetCol(ColAlpha,n,usebuffer);}
   //! return Delta value for row "n" into double
-  inline double GetDelta(long n,bool usebuffer=true)
+  inline double GetDelta(LONGLONG n,bool usebuffer=true)
                 {return GetCol(ColDelta,n,usebuffer);}
   //! return Bolo value for row "n" into double
-  inline double GetBolo(long n,bool usebuffer=true)
+  inline double GetBolo(LONGLONG n,bool usebuffer=true)
                 {return GetCol(ColBolo,n,usebuffer);}
   //! return Flag value for row "n" into double
-  inline double GetFlag(long n,bool usebuffer=true)
+  inline double GetFlag(LONGLONG n,bool usebuffer=true)
          {if(!IsFlag()) return 0.; return GetCol(ColFlag,n,usebuffer);}
   //! return SNum value for row "n" into double
-  inline double GetSNum(long n,bool usebuffer=true)
+  inline double GetSNum(LONGLONG n,bool usebuffer=true)
                 {return GetCol(ColSNum,n,usebuffer);}
   //! return column "col" value for row "n" into double
-  inline double GetCol(int col,long n,bool usebuffer=true) {
+  inline double GetCol(int col,LONGLONG n,bool usebuffer=true) {
     if(col<0 || col>=(int)mFABT.size())
       throw ParmError("FitsBoloRead::GetCol: bad column number\n");
@@ -68,53 +68,53 @@
 
   //! return Alpha values for rows [n1,n2] into TVector
-  inline long GetAlpha(long n1,long n2,TVector<double>& data)
+  inline LONGLONG GetAlpha(LONGLONG n1,LONGLONG n2,TVector<double>& data)
               {return GetCol(ColAlpha,n1,n2,data);}
-  inline long GetAlpha(long n1,long n2,TVector<float>& data)
+  inline LONGLONG GetAlpha(LONGLONG n1,LONGLONG n2,TVector<float>& data)
               {return GetCol(ColAlpha,n1,n2,data);}
-  inline long GetAlpha(long n1,long n2,TVector<int_4>& data)
+  inline LONGLONG GetAlpha(LONGLONG n1,LONGLONG n2,TVector<int_4>& data)
               {return GetCol(ColAlpha,n1,n2,data);}
 
   //! return Delta values for rows [n1,n2] into TVector
-  inline long GetDelta(long n1,long n2,TVector<double>& data)
+  inline LONGLONG GetDelta(LONGLONG n1,LONGLONG n2,TVector<double>& data)
               {return GetCol(ColDelta,n1,n2,data);}
-  inline long GetDelta(long n1,long n2,TVector<float>& data)
+  inline LONGLONG GetDelta(LONGLONG n1,LONGLONG n2,TVector<float>& data)
               {return GetCol(ColDelta,n1,n2,data);}
-  inline long GetDelta(long n1,long n2,TVector<int_4>& data)
+  inline LONGLONG GetDelta(LONGLONG n1,LONGLONG n2,TVector<int_4>& data)
               {return GetCol(ColDelta,n1,n2,data);}
 
   //! return Bolo values for rows [n1,n2] into TVector
-  inline long GetBolo(long n1,long n2,TVector<double>& data)
+  inline LONGLONG GetBolo(LONGLONG n1,LONGLONG n2,TVector<double>& data)
               {return GetCol(ColBolo,n1,n2,data);}
-  inline long GetBolo(long n1,long n2,TVector<float>& data)
+  inline LONGLONG GetBolo(LONGLONG n1,LONGLONG n2,TVector<float>& data)
               {return GetCol(ColBolo,n1,n2,data);}
-  inline long GetBolo(long n1,long n2,TVector<int_4>& data)
+  inline LONGLONG GetBolo(LONGLONG n1,LONGLONG n2,TVector<int_4>& data)
               {return GetCol(ColBolo,n1,n2,data);}
 
   //! return Flag values for rows [n1,n2] into TVector
-  inline long GetFlag(long n1,long n2,TVector<double>& data)
+  inline LONGLONG GetFlag(LONGLONG n1,LONGLONG n2,TVector<double>& data)
               {if(!IsFlag()) return 0; return GetCol(ColFlag,n1,n2,data);}
-  inline long GetFlag(long n1,long n2,TVector<float>& data)
+  inline LONGLONG GetFlag(LONGLONG n1,LONGLONG n2,TVector<float>& data)
               {if(!IsFlag()) return 0; return GetCol(ColFlag,n1,n2,data);}
-  inline long GetFlag(long n1,long n2,TVector<int_4>& data)
+  inline LONGLONG GetFlag(LONGLONG n1,LONGLONG n2,TVector<int_4>& data)
               {if(!IsFlag()) return 0; return GetCol(ColFlag,n1,n2,data);}
 
   //! return Sample Number values for rows [n1,n2] into TVector
-  inline long GetSNum(long n1,long n2,TVector<double>& data)
+  inline LONGLONG GetSNum(LONGLONG n1,LONGLONG n2,TVector<double>& data)
               {return GetCol(ColSNum,n1,n2,data);}
-  inline long GetSNum(long n1,long n2,TVector<float>& data)
+  inline LONGLONG GetSNum(LONGLONG n1,LONGLONG n2,TVector<float>& data)
               {return GetCol(ColSNum,n1,n2,data);}
-  inline long GetSNum(long n1,long n2,TVector<int_4>& data)
+  inline LONGLONG GetSNum(LONGLONG n1,LONGLONG n2,TVector<int_4>& data)
               {return GetCol(ColSNum,n1,n2,data);}
 
   //! return column "col" values for rows [n1,n2] into TVector
-  inline long GetCol(int col,long n1,long n2,TVector<double>& data) {
+  inline LONGLONG GetCol(int col,LONGLONG n1,LONGLONG n2,TVector<double>& data) {
     if(col<0 || col>=(int)mFABT.size()) return 0; if(mFABT[col]==NULL) return 0;
     return mFABT[col]->Read(n1,n2,data);
   }
-  inline long GetCol(int col,long n1,long n2,TVector<float>& data) {
+  inline LONGLONG GetCol(int col,LONGLONG n1,LONGLONG n2,TVector<float>& data) {
     if(col<0 || col>=(int)mFABT.size()) return 0; if(mFABT[col]==NULL) return 0;
     return mFABT[col]->Read(n1,n2,data);
   }
-  inline long GetCol(int col,long n1,long n2,TVector<int_4>& data) {
+  inline LONGLONG GetCol(int col,LONGLONG n1,LONGLONG n2,TVector<int_4>& data) {
     if(col<0 || col>=(int)mFABT.size()) return 0; if(mFABT[col]==NULL) return 0;
     return mFABT[col]->Read(n1,n2,data);
@@ -144,5 +144,5 @@
   void SetNbLine(int col=-1);
   //! Get the number of rows to be read
-  inline long GetNbLine(void) const {return NBline;}
+  inline LONGLONG GetNbLine(void) const {return NBline;}
   //! Get the number of columns in the FITS HDU to be read
   inline int  GetNbCol(void) const {return mFABT.size();}
@@ -175,5 +175,5 @@
   void Gess_If_Not_Define(int col);
 
-  long NBline;
+  LONGLONG NBline;
   unsigned short DbgLevel;
   long BuffLen, BuffSens;
