Changeset 10827


Ignore:
Timestamp:
May 26, 2011, 8:51:40 AM (8 years ago)
Author:
lyard
Message:
Fixed ushort and short
File:
1 edited

Legend:

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

    r10763 r10827  
    3737            break;
    3838            case CCfits::Tushort:
    39                 targetFile << *reinterpret_cast<const unsigned short*>(charSrc);
     39                reverse_copy(charSrc, charSrc+sizeof(unsigned short), copyBuffer);
     40                targetFile << *reinterpret_cast<const unsigned short*>(copyBuffer);
    4041                charSrc += sizeof(char);
    4142            break;
    4243            case CCfits::Tshort:
    43                 targetFile << *reinterpret_cast<const short*>(charSrc);
     44                reverse_copy(charSrc, charSrc+sizeof(short), copyBuffer);
     45                targetFile << *reinterpret_cast<const short*>(copyBuffer);
    4446                charSrc += sizeof(char);
    4547            break;
Note: See TracChangeset for help on using the changeset viewer.