Fixed type-punning issue (casting to char* makes GCC strict-aliasing happy).

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon 2011-11-16 21:12:47 -05:00
parent e15ab88f34
commit 25aab5d9ab

View file

@ -651,7 +651,7 @@ static int DGA_InitHWSurfaces(_THIS, SDL_Surface *screen, Uint8 *base, int size)
surfaces.base = screen->pixels;
surfaces.size = (unsigned int)((long)base - (long)surfaces.base);
surfaces.next = bucket;
screen->hwdata = (struct private_hwdata *)&surfaces;
screen->hwdata = (struct private_hwdata *)((char*)&surfaces);
return(0);
}
static void DGA_FreeHWSurfaces(_THIS)