From e28334d27b438c647c3a38f3b3f82e1875a36b09 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 24 Jan 2019 20:17:35 +0100 Subject: [PATCH] util-memory: Fix alligned_alloc for MSVC Microsofts _aligned_malloc has size and alignment switched around, which causes an unwanted exception. --- source/util-memory.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/util-memory.hpp b/source/util-memory.hpp index 529431ab..43946b15 100644 --- a/source/util-memory.hpp +++ b/source/util-memory.hpp @@ -21,7 +21,7 @@ #include #ifdef _MSC_VER -#define aligned_alloc _aligned_malloc +#define aligned_alloc(a, s) _aligned_malloc(s, a) #define aligned_free _aligned_free #else #define aligned_free free