From 8597d2c68165f60cee39db002a27fe5e7fb7248e Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 26 Aug 2013 14:08:32 +0200 Subject: [PATCH] Fixed the 64 bit build. --- include/tool/coroutine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tool/coroutine.h b/include/tool/coroutine.h index 719c4dccd8..ddd460cc1f 100644 --- a/include/tool/coroutine.h +++ b/include/tool/coroutine.h @@ -135,7 +135,7 @@ public: m_stack = malloc( c_defaultStackSize ); // align to 16 bytes - void *sp = (void *) ( ( ( (ptrdiff_t) m_stack ) + m_stackSize - 0xf ) & 0xfffffff0 ); + void *sp = (void *) ( ( ( (ptrdiff_t) m_stack ) + m_stackSize - 0xf ) & ( ~0x0f ) ); m_args = &args; m_self = boost::context::make_fcontext( sp, m_stackSize, callerStub );