summaryrefslogtreecommitdiff
path: root/libco
diff options
context:
space:
mode:
Diffstat (limited to 'libco')
-rw-r--r--libco/amd64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libco/amd64.c b/libco/amd64.c
index 5d74bf6..a9f6ee5 100644
--- a/libco/amd64.c
+++ b/libco/amd64.c
@@ -134,7 +134,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void))
size += 512; /* allocate additional space for storage */
size &= ~15; /* align stack to 16-byte boundary */
- if(handle = (cothread_t)malloc(size))
+ if((handle = (cothread_t)malloc(size)))
{
long long *p = (long long*)((char*)handle + size); /* seek to top of stack */
*--p = (long long)crash; /* crash if entrypoint returns */