Cycles: Use size_t for aligned allocator

Seems it got changes by accident to int during guarded allocation work,
causing bad memory allocations.
This commit is contained in:
Sergey Sharybin
2015-02-19 22:17:42 +05:00
parent 2ddfd3a123
commit 83220ab7fb
2 changed files with 4 additions and 2 deletions

View File

@@ -40,7 +40,7 @@
CCL_NAMESPACE_BEGIN
void *util_aligned_malloc(int size, int alignment)
void *util_aligned_malloc(size_t size, int alignment)
{
#ifdef WITH_BLENDER_GUARDEDALLOC
return MEM_mallocN_aligned(size, alignment, "Cycles Aligned Alloc");