Fixed type-punning issue (casting to char* makes GCC strict-aliasing happy). SDL-1.2
authorRyan C. Gordon
Wed, 16 Nov 2011 21:12:47 -0500
branchSDL-1.2
changeset 60835f85dce0d4fc
parent 6082 3d4488ae2e24
child 6084 2085129e7eab
Fixed type-punning issue (casting to char* makes GCC strict-aliasing happy).
src/video/dga/SDL_dgavideo.c
     1.1 --- a/src/video/dga/SDL_dgavideo.c	Wed Nov 16 21:10:03 2011 -0500
     1.2 +++ b/src/video/dga/SDL_dgavideo.c	Wed Nov 16 21:12:47 2011 -0500
     1.3 @@ -651,7 +651,7 @@
     1.4  	surfaces.base = screen->pixels;
     1.5  	surfaces.size = (unsigned int)((long)base - (long)surfaces.base);
     1.6  	surfaces.next = bucket;
     1.7 -	screen->hwdata = (struct private_hwdata *)&surfaces;
     1.8 +	screen->hwdata = (struct private_hwdata *)((char*)&surfaces);
     1.9  	return(0);
    1.10  }
    1.11  static void DGA_FreeHWSurfaces(_THIS)