mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 19:10:14 +01:00
change align_malloc() alignment to uint
This commit is contained in:
parent
5b8b542cb2
commit
23ca30e24b
1 changed files with 1 additions and 2 deletions
|
|
@ -117,11 +117,10 @@ REALLOC( void *old_ptr, unsigned old_size, unsigned new_size )
|
|||
* Return memory on given byte alignment
|
||||
*/
|
||||
static INLINE void *
|
||||
align_malloc(size_t bytes, unsigned long alignment)
|
||||
align_malloc(size_t bytes, uint alignment)
|
||||
{
|
||||
#if defined(HAVE_POSIX_MEMALIGN)
|
||||
void *mem;
|
||||
|
||||
(void) posix_memalign(& mem, alignment, bytes);
|
||||
return mem;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue