From 72cc10f3631c67df541b4fcaf3b48b11e5634592 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 Dec 2014 17:04:12 +0100 Subject: Silence warning in libco/x86.c --- libco/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libco/x86.c b/libco/x86.c index 5daffd9..ae16766 100644 --- a/libco/x86.c +++ b/libco/x86.c @@ -90,7 +90,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void)) size += 256; /* 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 *p = (long*)((char*)handle + size); /* seek to top of stack */ *--p = (long)crash; /* crash if entrypoint returns */ -- cgit v1.2.3