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:
2015-02-19 22:17:42 +05:00
parent 2ddfd3a123
commit 83220ab7fb
2 changed files with 4 additions and 2 deletions

View File

@@ -17,10 +17,12 @@
#ifndef __UTIL_ALIGNED_MALLOC_H__
#define __UTIL_ALIGNED_MALLOC_H__
#include "util_types.h"
CCL_NAMESPACE_BEGIN
/* Allocate block of size bytes at least aligned to a given value. */
void *util_aligned_malloc(int size, int alignment);
void *util_aligned_malloc(size_t size, int alignment);
/* Free memory allocated by util_aligned_malloc. */
void util_aligned_free(void *ptr);