From 25aab5d9ab5d46e41e703014e8a4df9530560c7a 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). --HG-- branch : SDL-1.2 --- 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)