Fixed blunder and changed OS test.

This commit is contained in:
hissingshark 2018-04-05 16:58:23 +01:00 committed by GitHub
parent dec5c7bdd2
commit d1bac19a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,10 +5,10 @@
#include "pvr_regs.h"
// helper for 32 byte aligned memory allocation
inline void* aligned_malloc(size_t size, size_t align)
inline void* aligned_malloc(size_t align, size_t size)
{
void *result;
#ifdef WIN32
#if HOST_OS == OS_WINDOWS
result = _aligned_malloc(size, align);
#else
if(posix_memalign(&result, align, size)) result = 0;