From 52ee9342e9c105960dda7c3b42fb97c45d3966d7 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 5 Jan 2009 01:09:32 +0000 Subject: [PATCH] alloca macro fix --- include/libtorrent/alloca.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/alloca.hpp b/include/libtorrent/alloca.hpp index 2d2601e7b..71b87f9db 100644 --- a/include/libtorrent/alloca.hpp +++ b/include/libtorrent/alloca.hpp @@ -37,12 +37,12 @@ POSSIBILITY OF SUCH DAMAGE. #ifdef TORRENT_WINDOWS #include -#define TORRENT_ALLOCA(t, n) static_cast(_alloca(sizeof(t) * n)); +#define TORRENT_ALLOCA(t, n) static_cast(_alloca(sizeof(t) * (n))); #else #include -#define TORRENT_ALLOCA(t, n) static_cast(alloca(sizeof(t) * n)); +#define TORRENT_ALLOCA(t, n) static_cast(alloca(sizeof(t) * (n))); #endif