Ticket #8433: scummvm-x86_64.patch

File scummvm-x86_64.patch, 1.1 KB (added by SF/awjb, 19 years ago)
  • scumm/instrument.h

    old new  
    6060
    6161        void clear();
    6262        void copy_to (Instrument *dest) { if (_instrument) _instrument->copy_to (dest); else dest->clear(); }
    63         operator int() { return (_instrument ? (int) _instrument : 255); }
     63        operator int() { return (_instrument ? (intptr_t) _instrument : 255); }
    6464        void program (byte program, bool mt32);
    6565        void adlib (byte *instrument);
    6666        void roland (byte *instrument);
  • common/scaler.cpp

    old new  
    123123                                                        int width, int height) {
    124124        uint8 *r;
    125125
    126         assert(((int)dstPtr & 3) == 0);
     126        assert(((intptr_t)dstPtr & 3) == 0);
    127127        while (height--) {
    128128                r = dstPtr;
    129129                for (int i = 0; i < width; ++i, r += 4) {
     
    148148        const uint32 dstPitch2 = dstPitch * 2;
    149149        const uint32 dstPitch3 = dstPitch * 3;
    150150
    151         assert(((int)dstPtr & 1) == 0);
     151        assert(((intptr_t)dstPtr & 1) == 0);
    152152        while (height--) {
    153153                r = dstPtr;
    154154                for (int i = 0; i < width; ++i, r += 6) {