summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/MemoryUtil.cpp
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2013-01-31 15:29:29 -0600
committerGlenn Rice <glennricster@gmail.com>2013-01-31 15:29:29 -0600
commitf7fa33f2d618206e6388cc023d17ceb6a04d6af2 (patch)
treed150ad01bb5df2634419a494b5426d79ec2ebb79 /Source/Core/Common/Src/MemoryUtil.cpp
parent0ffdd2607f4ce56e4a35e959d1f5adcc07959320 (diff)
Fix remaining compiler warnings.
Diffstat (limited to 'Source/Core/Common/Src/MemoryUtil.cpp')
-rw-r--r--Source/Core/Common/Src/MemoryUtil.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/MemoryUtil.cpp b/Source/Core/Common/Src/MemoryUtil.cpp
index ebfa380be4..0888746d42 100644
--- a/Source/Core/Common/Src/MemoryUtil.cpp
+++ b/Source/Core/Common/Src/MemoryUtil.cpp
@@ -117,7 +117,8 @@ void* AllocateAlignedMemory(size_t size,size_t alignment)
void* ptr = _aligned_malloc(size,alignment);
#else
void* ptr = NULL;
- posix_memalign(&ptr, alignment, size);
+ if (posix_memalign(&ptr, alignment, size) != 0)
+ ERROR_LOG(MEMMAP, "Failed to allocate aligned memory");
;
#endif