Skip to content
Permalink
Browse files

Fixed type-punning issue (casting to char* makes GCC strict-aliasing …

…happy).
  • Loading branch information
icculus committed Nov 17, 2011
1 parent 85718bc commit ea06f7dce5294b5c469adff0f7f33ece6fee70cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/dga/SDL_dgavideo.c
@@ -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)

0 comments on commit ea06f7d

Please sign in to comment.