Changeset 20053 for trunk


Ignore:
Timestamp:
04/11/21 17:40:23 (4 years ago)
Author:
tbretz
Message:
Some changed to fix some problems with the recent compiler -- looks ugly but according to forums, it should work.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/HeadersFTM.h

    r19022 r20053  
    315315            const int board = (idx/9)/4;
    316316
    317             uint16_t &pix = fBoard[board/10][board%10].fEnable[patch];
     317            uint16_t &pix = *(fBoard[board/10][board%10].fEnable+patch);
    318318
    319319            if (enable)
     
    497497        }
    498498
    499         uint32_t &operator[](int i) { return fRatePatch[i]; }
     499        uint32_t &operator[](int i) { return *(fRatePatch+i); }
    500500
    501501    }  __attribute__((__packed__));
     
    735735        void clear() { reset(*this); }
    736736
    737         uint16_t &operator[](int idx) { return fData[idx]; }
    738         const uint16_t &operator[](int idx) const { return fData[idx]; }
     737        uint16_t &operator[](int idx) { return *(fData+idx); }
     738        uint16_t operator[](int idx) const { return fData[idx]; }
    739739
    740740        void print(std::ostream &out) const;
Note: See TracChangeset for help on using the changeset viewer.