Changeset 12724 for trunk/FACT++/src


Ignore:
Timestamp:
12/15/11 10:47:08 (13 years ago)
Author:
lyard
Message:
fixed fitsdump warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fitsdump.cc

    r12723 r12724  
    1313#include "externals/fits.h"
    1414
    15 #define PLOTTING_PLEASE
     15//#define PLOTTING_PLEASE
    1616
    1717#ifdef PLOTTING_PLEASE
     
    5757
    5858private:
     59    fits* fFile;
    5960    bool fDotsPlease;
    60     fits* fFile;
    6161    string fFilename;
    6262
     
    205205}
    206206
    207 bool FitsDumper::OpenTable(const string &tablename)
     207bool FitsDumper::OpenTable(const string &)
    208208{
    209209    if (!fFile)
     
    370370        const fits::Table::Column& col = fColMap[*it];
    371371//        const MyColumn *col = static_cast<MyColumn*>(fTable->column()[*it]);
    372         if (rangesIt->first != 0 || rangesIt->second != col.num)
     372        if (rangesIt->first != 0 || rangesIt->second != (int)(col.num))
    373373        {
    374374            out << "#";
     
    632632    rangesIt = ranges.begin();
    633633    auto statsIt = statData.begin();
    634     int round;
     634
    635635    auto nameIt = listNamesOnly.begin();
    636636    for (auto it=columnsData.begin(); it != columnsData.end(); it++, rangesIt++, statsIt++, nameIt++)
     
    785785//      stringstream str;
    786786      str.str("");
    787       int status = 0;
     787
    788788
    789789      vector<double*> xValues(totalSize);
     
    807807          for (auto it=columnsData.begin(); it != columnsData.end(); it++, rangesIt++)
    808808          {
    809               for (int i=rangesIt->first; i<rangesIt->second; i++)
     809              for (int j=rangesIt->first; j<rangesIt->second; j++)
    810810              {
    811811              switch (it->first) {
    812812                  case 'L':
    813                           str << reinterpret_cast<bool*>(it->second)[i] << " ";
     813                          str << reinterpret_cast<bool*>(it->second)[j] << " ";
    814814                          break;
    815815                  case 'B':
    816                           str << reinterpret_cast<char*>(it->second)[i] << " ";
     816                          str << reinterpret_cast<char*>(it->second)[j] << " ";
    817817                          break;
    818818                  case 'I':
    819                           str << reinterpret_cast<int16_t*>(it->second)[i] << " ";
     819                          str << reinterpret_cast<int16_t*>(it->second)[j] << " ";
    820820                          break;
    821821                  case 'J':
    822                           str << reinterpret_cast<int32_t*>(it->second)[i] << " ";
     822                          str << reinterpret_cast<int32_t*>(it->second)[j] << " ";
    823823                          break;
    824824                  case 'K':
    825                           str << reinterpret_cast<int64_t*>(it->second)[i] << " ";
     825                          str << reinterpret_cast<int64_t*>(it->second)[j] << " ";
    826826                          break;
    827827                  case 'E':
    828                           str << reinterpret_cast<float*>(it->second)[i] << " ";
     828                          str << reinterpret_cast<float*>(it->second)[j] << " ";
    829829                          break;
    830830                  case 'D':
    831                           str << reinterpret_cast<double*>(it->second)[i] << " ";
     831                          str << reinterpret_cast<double*>(it->second)[j] << " ";
    832832                          break;
    833833                  default:
Note: See TracChangeset for help on using the changeset viewer.