alloca macro fix

This commit is contained in:
Arvid Norberg 2009-01-05 01:09:32 +00:00
parent d07ccaf6b8
commit 52ee9342e9
1 changed files with 2 additions and 2 deletions

View File

@ -37,12 +37,12 @@ POSSIBILITY OF SUCH DAMAGE.
#ifdef TORRENT_WINDOWS #ifdef TORRENT_WINDOWS
#include <malloc.h> #include <malloc.h>
#define TORRENT_ALLOCA(t, n) static_cast<t*>(_alloca(sizeof(t) * n)); #define TORRENT_ALLOCA(t, n) static_cast<t*>(_alloca(sizeof(t) * (n)));
#else #else
#include <alloca.h> #include <alloca.h>
#define TORRENT_ALLOCA(t, n) static_cast<t*>(alloca(sizeof(t) * n)); #define TORRENT_ALLOCA(t, n) static_cast<t*>(alloca(sizeof(t) * (n)));
#endif #endif