fix parameter mixup in linux posix_memalign.

meow-7.2.2
Karl Stiefvater (qarl) 2010-05-24 17:23:24 -05:00
parent 9d72930328
commit 0222829e93
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ inline void* ll_aligned_malloc_16(size_t size) // returned hunk MUST be freed wi
return malloc(size); // default osx malloc is 16 byte aligned.
#else
void *rtn;
if (LL_LIKELY(0 == posix_memalign(&rtn, alignment, 16)))
if (LL_LIKELY(0 == posix_memalign(&rtn, 16, size)))
{
return rtn;
}