Ignore:
Timestamp:
04/06/06 13:45:58 (18 years ago)
Author:
mar637
Message:

more fixes after compiling with -Wall.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r987 r996  
    101101  initFactories();
    102102  Table tab(name, Table::Update);
    103   Int version;
     103  uInt version;
    104104  tab.keywordSet().get("VERSION", version);
    105105  if (version != version_) {
     
    322322
    323323int Scantable::nscan() const {
    324   int n = 0;
    325   Int previous = -1; Int current = 0;
    326324  Vector<uInt> scannos(scanCol_.getColumn());
    327325  uInt nout = GenSort<uInt>::sort( scannos, Sort::Ascending,
     
    384382{
    385383  bool throwIt = true;
    386   Instrument ins = STAttr::convertInstrument(name, throwIt);
     384  // create an Instrument to see if this is valid
     385  STAttr::convertInstrument(name, throwIt);
    387386  String nameU(name);
    388387  nameU.upcase();
     
    555554  oss << "Computed azimuth/elevation using " << endl
    556555      << mp << endl;
    557   for (uInt i=0; i<nrow(); ++i) {
     556  for (Int i=0; i<nrow(); ++i) {
    558557    MEpoch me = timeCol(i);
    559558    MDirection md = getDirection(i);
     
    795794std::vector< double > asap::Scantable::getAbcissa( int whichrow ) const
    796795{
    797   if ( whichrow > table_.nrow() ) throw(AipsError("Illegal ro number"));
     796  if ( whichrow > int(table_.nrow()) ) throw(AipsError("Illegal ro number"));
    798797  std::vector<double> stlout;
    799798  int nchan = specCol_(whichrow).nelements();
     
    864863std::string Scantable::getAbcissaLabel( int whichrow ) const
    865864{
    866   if ( whichrow > table_.nrow() ) throw(AipsError("Illegal ro number"));
     865  if ( whichrow > int(table_.nrow()) ) throw(AipsError("Illegal ro number"));
    867866  const MPosition& mp = getAntennaPosition();
    868867  const MDirection& md = getDirection(whichrow);
Note: See TracChangeset for help on using the changeset viewer.