mesa: Silence 'assignment makes integer from pointer without a cast' warnings.

This commit is contained in:
José Fonseca 2012-10-10 11:35:34 +01:00
parent 9c1c23331a
commit a555888151

View file

@ -97,7 +97,7 @@ _mesa_align_malloc(size_t bytes, unsigned long alignment)
ASSERT( alignment > 0 );
ptr = malloc(bytes + alignment + sizeof(void *));
ptr = (uintptr_t)malloc(bytes + alignment + sizeof(void *));
if (!ptr)
return NULL;
@ -146,7 +146,7 @@ _mesa_align_calloc(size_t bytes, unsigned long alignment)
ASSERT( alignment > 0 );
ptr = calloc(1, bytes + alignment + sizeof(void *));
ptr = (uintptr_t)calloc(1, bytes + alignment + sizeof(void *));
if (!ptr)
return NULL;