From bda151e3887c2d44295b38d6582876365b15caa2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Dec 2014 17:58:56 +0100 Subject: Silence libco/amd64.c warning --- libco/amd64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libco') 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 */ -- cgit v1.2.3