Ticket #8433: scummvm-x86_64.patch
File scummvm-x86_64.patch, 1.1 KB (added by , 19 years ago) |
---|
-
scumm/instrument.h
old new 60 60 61 61 void clear(); 62 62 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); } 64 64 void program (byte program, bool mt32); 65 65 void adlib (byte *instrument); 66 66 void roland (byte *instrument); -
common/scaler.cpp
old new 123 123 int width, int height) { 124 124 uint8 *r; 125 125 126 assert(((int )dstPtr & 3) == 0);126 assert(((intptr_t)dstPtr & 3) == 0); 127 127 while (height--) { 128 128 r = dstPtr; 129 129 for (int i = 0; i < width; ++i, r += 4) { … … 148 148 const uint32 dstPitch2 = dstPitch * 2; 149 149 const uint32 dstPitch3 = dstPitch * 3; 150 150 151 assert(((int )dstPtr & 1) == 0);151 assert(((intptr_t)dstPtr & 1) == 0); 152 152 while (height--) { 153 153 r = dstPtr; 154 154 for (int i = 0; i < width; ++i, r += 6) {