change align_malloc() alignment to uint
This commit is contained in:
@@ -117,11 +117,10 @@ REALLOC( void *old_ptr, unsigned old_size, unsigned new_size )
|
|||||||
* Return memory on given byte alignment
|
* Return memory on given byte alignment
|
||||||
*/
|
*/
|
||||||
static INLINE void *
|
static INLINE void *
|
||||||
align_malloc(size_t bytes, unsigned long alignment)
|
align_malloc(size_t bytes, uint alignment)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_POSIX_MEMALIGN)
|
#if defined(HAVE_POSIX_MEMALIGN)
|
||||||
void *mem;
|
void *mem;
|
||||||
|
|
||||||
(void) posix_memalign(& mem, alignment, bytes);
|
(void) posix_memalign(& mem, alignment, bytes);
|
||||||
return mem;
|
return mem;
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user