Fixed type-punning issue (casting to char* makes GCC strict-aliasing happy).
--HG-- branch : SDL-1.2
This commit is contained in:
parent
e15ab88f34
commit
25aab5d9ab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue