Ticket #8985: no-fpermissive.diff
File no-fpermissive.diff, 4.2 KB (added by , 15 years ago) |
---|
-
engines/agi/lzw.cpp
144 144 setBits(START_BITS); /* Starts at 9-bits */ 145 145 lzwnext = 257; /* Next available code to define */ 146 146 147 end = (unsigned char *)(( long)out + (long)len);147 end = (unsigned char *)((size_t)out + (long)len); 148 148 149 149 lzwold = inputCode(&in); /* Read in the first code */ 150 150 c = lzwold; -
engines/scumm/gfx.cpp
603 603 604 604 // The values x, width, etc. are all multiples of 8 at this point, 605 605 // so loop unrolloing might be a good idea... 606 assert(0 == (( long)text & 3));606 assert(0 == ((size_t)text & 3)); 607 607 assert(0 == (width & 3)); 608 608 609 609 // Compose the text over the game graphics -
engines/agos/subroutine.cpp
220 220 } 221 221 222 222 void AGOSEngine::alignTableMem() { 223 if (( unsigned long)_tablesHeapPtr & 3) {223 if ((size_t)_tablesHeapPtr & 3) { 224 224 _tablesHeapPtr += 2; 225 225 _tablesHeapCurPos += 2; 226 226 } -
engines/sky/compact.cpp
34 34 35 35 #define SKY_CPT_SIZE 419427 36 36 37 #define OFFS(type,item) ((( long)(&((type*)0)->item)))37 #define OFFS(type,item) (((size_t)(&((type*)0)->item))) 38 38 #define MK32(type,item) OFFS(type, item),0,0,0 39 39 #define MK16(type,item) OFFS(type, item),0 40 40 #define MK32_A5(type, item) MK32(type, item[0]), MK32(type, item[1]), \ -
graphics/scaler.cpp
194 194 int width, int height) { 195 195 uint8 *r; 196 196 197 assert((( long)dstPtr & 3) == 0);197 assert(((size_t)dstPtr & 3) == 0); 198 198 assert(sizeof(OverlayColor) == 2); 199 199 while (height--) { 200 200 r = dstPtr; … … 220 220 const uint32 dstPitch2 = dstPitch * 2; 221 221 const uint32 dstPitch3 = dstPitch * 3; 222 222 223 assert((( long)dstPtr & 1) == 0);223 assert(((size_t)dstPtr & 1) == 0); 224 224 while (height--) { 225 225 r = dstPtr; 226 226 for (int i = 0; i < width; ++i, r += 6) { … … 255 255 const uint32 dstPitch3 = dstPitch * 3; 256 256 const uint32 srcPitch2 = srcPitch * 2; 257 257 258 assert((( long)dstPtr & 1) == 0);258 assert(((size_t)dstPtr & 1) == 0); 259 259 while (height > 0) { 260 260 r = dstPtr; 261 261 for (int i = 0; i < width; i += 2, r += 6) { -
backends/midi/windows.cpp
62 62 return MERR_ALREADY_OPEN; 63 63 64 64 _streamEvent = CreateEvent(NULL, true, true, NULL); 65 MMRESULT res = midiOutOpen((HMIDIOUT *)&_mo, MIDI_MAPPER, ( unsigned long)_streamEvent, 0, CALLBACK_EVENT);65 MMRESULT res = midiOutOpen((HMIDIOUT *)&_mo, MIDI_MAPPER, (size_t)_streamEvent, 0, CALLBACK_EVENT); 66 66 if (res != MMSYSERR_NOERROR) { 67 67 check_error(res); 68 68 CloseHandle(_streamEvent); -
backends/platform/sdl/graphics.cpp
793 793 assert(h > 0 && y + h <= _videoMode.screenHeight); 794 794 assert(w > 0 && x + w <= _videoMode.screenWidth); 795 795 796 if ((( long)src & 3) == 0 && pitch == _videoMode.screenWidth && x == 0 && y == 0 &&796 if (((size_t)src & 3) == 0 && pitch == _videoMode.screenWidth && x == 0 && y == 0 && 797 797 w == _videoMode.screenWidth && h == _videoMode.screenHeight && _modeFlags & DF_WANT_RECT_OPTIM) { 798 798 /* Special, optimized case for full screen updates. 799 799 * It tries to determine what areas were actually changed, … … 997 997 998 998 void OSystem_SDL::addDirtyRgnAuto(const byte *buf) { 999 999 assert(buf); 1000 assert((( long)buf & 3) == 0);1000 assert(((size_t)buf & 3) == 0); 1001 1001 1002 1002 /* generate a table of the checksums */ 1003 1003 makeChecksums(buf);