diff sub/sub.c @ 32763:ce9c41d97bfd

Do not pointlessly cast the return value of memalign(). memalign() returns void*, which is compatible with any pointer in C.
author diego
date Fri, 04 Feb 2011 10:06:01 +0000
parents 8fa2f43cb760
children 8d137fb84699
line wrap: on
line diff
--- a/sub/sub.c	Fri Feb 04 10:01:46 2011 +0000
+++ b/sub/sub.c	Fri Feb 04 10:06:01 2011 +0000
@@ -157,8 +157,8 @@
 	obj->allocated = len;
 	free(obj->bitmap_buffer);
 	free(obj->alpha_buffer);
-	obj->bitmap_buffer = (unsigned char *)memalign(16, len);
-	obj->alpha_buffer = (unsigned char *)memalign(16, len);
+	obj->bitmap_buffer = memalign(16, len);
+	obj->alpha_buffer  = memalign(16, len);
     }
     memset(obj->bitmap_buffer, sub_bg_color, len);
     memset(obj->alpha_buffer, sub_bg_alpha, len);