glX_proto_send.py: Don't cast the return value of malloc

This commit is contained in:
Matt Turner
2012-09-04 22:57:48 -07:00
parent 2b7a972e3f
commit a9e8054fff

View File

@@ -970,7 +970,7 @@ struct _glapi_table * __glXNewIndirectAPI( void )
int o;
entries = _glapi_get_dispatch_table_size();
table = (_glapi_proc *) malloc(entries * sizeof(_glapi_proc));
table = malloc(entries * sizeof(_glapi_proc));
/* first, set all entries to point to no-op functions */
for (i = 0; i < entries; i++) {