Fixed various potential bugs and compiler warnings

This commit is contained in:
Mathias Tillman committed 2013-01-07 15:57:19 +01:00
1 parent 03eacd1af3
commit b780e39397
10 files changed
+62 -40

No files matched your search

+2 -1
View File
@@ -143,7 +143,8 @@ void* AllocateAlignedMemory(size_t size,size_t alignment)
// On Symbian, we will want to create an RChunk.
ptr = malloc(size);
#else
posix_memalign(&ptr, alignment, size);
if(posix_memalign(&ptr, alignment, size) != 0)
ptr = NULL;
#endif
#endif