Fix warning. First compute value then increment pointer.

SVN revision: 27588
This commit is contained in:
Sebastian Dransfeld 2006-12-28 12:37:37 +00:00
parent f3b4ebd01f
commit 4b1cf1116c
1 changed files with 2 additions and 1 deletions

View File

@ -682,8 +682,9 @@ evas_common_image_premul(RGBA_Image *im)
{
DATA32 a = 1 + (*s >> 24);
*s++ = (*s & 0xff000000) + (((((*s) >> 8) & 0xff) * a) & 0xff00) +
*s = (*s & 0xff000000) + (((((*s) >> 8) & 0xff) * a) & 0xff00) +
(((((*s) & 0x00ff00ff) * a) >> 8) & 0x00ff00ff);
s++;
if ((a == 1) || (a == 256))
nas++;
}