From a7e6ce7c00c8b1e62dc416b8953c4a4c0910fd2b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 5 Mar 2010 23:07:29 +0000 Subject: [PATCH] fixed memalign build --- src/allocator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allocator.cpp b/src/allocator.cpp index 6024d492f..8ca8d7046 100644 --- a/src/allocator.cpp +++ b/src/allocator.cpp @@ -74,9 +74,9 @@ namespace libtorrent #if TORRENT_USE_POSIX_MEMALIGN void* ret; if (posix_memalign(&ret, page_size(), bytes) != 0) ret = 0; - return ret; + return (char*)ret; #elif TORRENT_USE_MEMALIGN - return memalign(page_size(), bytes); + return (char*)memalign(page_size(), bytes); #elif defined TORRENT_WINDOWS return (char*)VirtualAlloc(0, bytes, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); #elif defined TORRENT_BEOS