mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
mesa: Silence 'assignment makes integer from pointer without a cast' warnings.
This commit is contained in:
parent
9c1c23331a
commit
a555888151
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue