Mercurial > mplayer.hg
diff TOOLS/bmovl-test.c @ 30702:9fc9d1e788aa
Do not cast the results of malloc/calloc/realloc.
These functions return void*, which is compatible with any pointer,
so there is no need for casts.
author | diego |
---|---|
date | Fri, 26 Feb 2010 15:01:37 +0000 |
parents | b573c7c7173b |
children |
line wrap: on
line diff
--- a/TOOLS/bmovl-test.c Fri Feb 26 12:49:49 2010 +0000 +++ b/TOOLS/bmovl-test.c Fri Feb 26 15:01:37 2010 +0000 @@ -104,7 +104,7 @@ blit(fifo, image->pixels, image->w, image->h, i, i, 0, 1); // Create a 75x75 bitmap - bitmap = (unsigned char*)malloc(75*75*4); + bitmap = malloc(75 * 75 * 4); // Paint bitmap red, 50% transparent and blit at position 50,50 paint(bitmap, (75*75*4), 255, 0, 0, 128);