src/video/SDL_surface.c
changeset 1456 84de7511f79f
parent 1428 5f52867ba65c
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
     1.1 --- a/src/video/SDL_surface.c	Mon Feb 27 22:14:40 2006 +0000
     1.2 +++ b/src/video/SDL_surface.c	Wed Mar 01 09:43:47 2006 +0000
     1.3 @@ -604,7 +604,7 @@
     1.4  			dstrect->x*dst->format->BytesPerPixel;
     1.5  	if ( dst->format->palette || (color == 0) ) {
     1.6  		x = dstrect->w*dst->format->BytesPerPixel;
     1.7 -		if ( !color && !((long)row&3) && !(x&3) && !(dst->pitch&3) ) {
     1.8 +		if ( !color && !((uintptr_t)row&3) && !(x&3) && !(dst->pitch&3) ) {
     1.9  			int n = x >> 2;
    1.10  			for ( y=dstrect->h; y; --y ) {
    1.11  				SDL_memset4(row, 0, n);
    1.12 @@ -690,7 +690,7 @@
    1.13  				Uint16 c = (Uint16)color;
    1.14  				Uint32 cc = (Uint32)c << 16 | c;
    1.15  				int n = dstrect->w;
    1.16 -				if((unsigned long)pixels & 3) {
    1.17 +				if((uintptr_t)pixels & 3) {
    1.18  					*pixels++ = c;
    1.19  					n--;
    1.20  				}