From ea06f7dce5294b5c469adff0f7f33ece6fee70cf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 16 Nov 2011 21:12:47 -0500 Subject: [PATCH] Fixed type-punning issue (casting to char* makes GCC strict-aliasing happy). --- src/video/dga/SDL_dgavideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/dga/SDL_dgavideo.c b/src/video/dga/SDL_dgavideo.c index fbffc28a1..e9f6a1f54 100644 --- a/src/video/dga/SDL_dgavideo.c +++ b/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)