summaryrefslogtreecommitdiff
path: root/libco/x86.c
diff options
context:
space:
mode:
authortwinaphex2014-12-09 17:04:12 +0100
committertwinaphex2014-12-09 17:04:12 +0100
commit72cc10f3631c67df541b4fcaf3b48b11e5634592 (patch)
treea4d697206258a2b1e00a2e282dcfda5d1ca809ae /libco/x86.c
parent8baf91c105bb0d25308274614c134eb94bf30079 (diff)
downloadpicogpsp-72cc10f3631c67df541b4fcaf3b48b11e5634592.tar.gz
picogpsp-72cc10f3631c67df541b4fcaf3b48b11e5634592.tar.bz2
picogpsp-72cc10f3631c67df541b4fcaf3b48b11e5634592.zip
Silence warning in libco/x86.c
Diffstat (limited to 'libco/x86.c')
-rw-r--r--libco/x86.c2
1 files changed, 1 insertions, 1 deletions
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 */