[cairo] [PATCH 2/8] Don't cast pointers to integers

Sven Herzberg herzi-ml at gnome-de.org
Sat Aug 12 23:52:48 PDT 2006


On So, 2006-08-13 at 01:57 -0400, Pavel Roskin wrote:
> diff --git a/pixman/src/fbmmx.c b/pixman/src/fbmmx.c
> index bc746cf..4d603bf 100644
> --- a/pixman/src/fbmmx.c
> +++ b/pixman/src/fbmmx.c
> @@ -2401,7 +2401,7 @@ fbCopyAreammx (FbPixels	*pSrc,
>  	    d += 2;
>  	}
>  
> -	while (w >= 4 && ((unsigned int)d & 7))
> +	while (w >= 4 && ((unsigned long)d & 7))
>  	{
>  	    *(CARD32 *)d = *(CARD32 *)s;

Shouldn't that be uintptr_t?

Regards,
  Sven



More information about the cairo mailing list