Fix pointer warnings
authorSylvain Becker <sylvain.becker@gmail.com>
Thu, 07 Feb 2019 16:13:25 +0100
changeset 12600be2c1d4ee0d1
parent 12599 e9be1aa42927
child 12601 22056748671d
Fix pointer warnings
src/video/SDL_blit_N.c
     1.1 --- a/src/video/SDL_blit_N.c	Thu Feb 07 15:12:17 2019 +0100
     1.2 +++ b/src/video/SDL_blit_N.c	Thu Feb 07 16:13:25 2019 +0100
     1.3 @@ -2542,8 +2542,8 @@
     1.4              DUFFS_LOOP(
     1.5              {
     1.6                  if ((*src32 & rgbmask) != ckey) {
     1.7 -                    Uint8 *s8 = src32;
     1.8 -                    Uint8 *d8 = dst32;
     1.9 +                    Uint8 *s8 = (Uint8 *)src32;
    1.10 +                    Uint8 *d8 = (Uint8 *)dst32;
    1.11                      d8[0] = s8[r];
    1.12                      d8[1] = s8[g];
    1.13                      d8[2] = s8[b];