Skip to content

Commit

Permalink
Fixed type-punning issue (casting to char* makes GCC strict-aliasing …
Browse files Browse the repository at this point in the history
…happy).
  • Loading branch information
icculus committed Nov 17, 2011
1 parent 85718bc commit ea06f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/dga/SDL_dgavideo.c
Expand Up @@ -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)
Expand Down

0 comments on commit ea06f7d

Please sign in to comment.